elasticemail-rust's Issues
Project doesn't build successfully
When I clone the project and run cargo build
there are several build errors and warnings:
error[E0412]: cannot find type `ExportFileFormats` in this scope
--> src/apis/contacts_api.rs:265:101
|
265 | ...ile_format: Option<ExportFileFormats>, rule: Option<&str>, emails: Option<Vec<St...
| ^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::ExportFileFormats;
|
error[E0412]: cannot find type `CompressionFormat` in this scope
--> src/apis/contacts_api.rs:265:197
|
265 | ...ion_format: Option<CompressionFormat>, file_name: Option<&str>) -> Result<crate:...
| ^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::CompressionFormat;
|
error[E0412]: cannot find type `EventsOrderBy` in this scope
--> src/apis/events_api.rs:69:168
|
69 | ...ng>, order_by: Option<EventsOrderBy>, limit: Option<i32>, offset: Option<i32>) ->...
| ^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::EventsOrderBy;
|
error[E0412]: cannot find type `ExportFileFormats` in this scope
--> src/apis/events_api.rs:120:222
|
120 | ...ile_format: Option<ExportFileFormats>, compression_format: Option<CompressionFor...
| ^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::ExportFileFormats;
|
error[E0412]: cannot find type `CompressionFormat` in this scope
--> src/apis/events_api.rs:120:269
|
120 | ...ion_format: Option<CompressionFormat>, file_name: Option<&str>) -> Result<crate:...
| ^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::CompressionFormat;
|
error[E0412]: cannot find type `EventsOrderBy` in this scope
--> src/apis/events_api.rs:177:211
|
177 | ...g>, order_by: Option<EventsOrderBy>, limit: Option<i32>, offset: Option<i32>) ->...
| ^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::EventsOrderBy;
|
error[E0412]: cannot find type `ExportFileFormats` in this scope
--> src/apis/events_api.rs:306:193
|
306 | ...ile_format: Option<ExportFileFormats>, compression_format: Option<CompressionFor...
| ^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::ExportFileFormats;
|
error[E0412]: cannot find type `CompressionFormat` in this scope
--> src/apis/events_api.rs:306:240
|
306 | ...ion_format: Option<CompressionFormat>, file_name: Option<&str>) -> Result<crate:...
| ^^^^^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::CompressionFormat;
|
error[E0412]: cannot find type `EventsOrderBy` in this scope
--> src/apis/events_api.rs:363:182
|
363 | ...g>, order_by: Option<EventsOrderBy>, limit: Option<i32>, offset: Option<i32>) ->...
| ^^^^^^^^^^^^^ not found in this scope
|
help: consider importing this enum through its public re-export
|
12 + use crate::models::EventsOrderBy;
|
error[E0282]: type annotations needed
--> src/apis/contacts_api.rs:274:93
|
274 | ..."fileFormat", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
error[E0282]: type annotations needed
--> src/apis/contacts_api.rs:286:100
|
286 | ...ssionFormat", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
warning: unused variable: `file`
--> src/apis/contacts_api.rs:361:159
|
361 | ...r>, file: Option<std::path::PathBuf>) -> Result<(), Error<ContactsImportPostErro...
| ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
|
= note: `#[warn(unused_variables)]` on by default
warning: variable does not need to be mutable
--> src/apis/contacts_api.rs:389:9
|
389 | let mut local_var_form = reqwest::multipart::Form::new();
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
error[E0282]: type annotations needed
--> src/apis/events_api.rs:84:90
|
84 | ...&[("orderBy", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
error[E0282]: type annotations needed
--> src/apis/events_api.rs:141:93
|
141 | ..."fileFormat", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
error[E0282]: type annotations needed
--> src/apis/events_api.rs:144:100
|
144 | ...ssionFormat", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
error[E0282]: type annotations needed
--> src/apis/events_api.rs:198:90
|
198 | ...&[("orderBy", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
error[E0282]: type annotations needed
--> src/apis/events_api.rs:327:93
|
327 | ..."fileFormat", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
error[E0282]: type annotations needed
--> src/apis/events_api.rs:330:100
|
330 | ...ssionFormat", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
error[E0282]: type annotations needed
--> src/apis/events_api.rs:384:90
|
384 | ...&[("orderBy", &local_var_str.to_string())]);
| ^^^^^^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
warning: unused variable: `file`
--> src/apis/suppressions_api.rs:149:93
|
149 | ...on, file: Option<std::path::PathBuf>) -> Result<(), Error<SuppressionsBouncesImp...
| ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
warning: variable does not need to be mutable
--> src/apis/suppressions_api.rs:168:9
|
168 | let mut local_var_form = reqwest::multipart::Form::new();
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `file`
--> src/apis/suppressions_api.rs:342:96
|
342 | ...on, file: Option<std::path::PathBuf>) -> Result<(), Error<SuppressionsComplaints...
| ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
warning: variable does not need to be mutable
--> src/apis/suppressions_api.rs:361:9
|
361 | let mut local_var_form = reqwest::multipart::Form::new();
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `file`
--> src/apis/suppressions_api.rs:505:98
|
505 | ...on, file: Option<std::path::PathBuf>) -> Result<(), Error<SuppressionsUnsubscrib...
| ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
warning: variable does not need to be mutable
--> src/apis/suppressions_api.rs:524:9
|
524 | let mut local_var_form = reqwest::multipart::Form::new();
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
error[E0277]: a value of type `Vec<(std::string::String, std::string::String)>` cannot be built from an iterator over elements of type `(std::string::String, TemplateScope)`
--> src/apis/templates_api.rs:173:109
|
173 | ...("scopeType".to_owned(), p)).collect::<Vec<(std::string::String, std::string::S...
| ^^^^^^^ value of type `Vec<(std::string::String, std::string::String)>` cannot be built from `std::iter::Iterator<Item=(std::string::String, TemplateScope)>`
|
= help: the trait `FromIterator<(std::string::String, TemplateScope)>` is not implemented for `Vec<(std::string::String, std::string::String)>`
= help: the trait `FromIterator<T>` is implemented for `Vec<T>`
note: the method call chain might not have had the expected associated types
--> src/apis/templates_api.rs:173:72
|
164 | ...figuration::Configuration, scope_type: Vec<crate::models::TemplateScope>, templ...
| ---------- this expression has type `Vec<TemplateScope>`
...
173 | ...(&scope_type.into_iter().map(|p| ("scopeType".to_owned(), p)).collect::<Vec<(st...
| ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Iterator::Item` changed to `(String, TemplateScope)` here
| |
| `Iterator::Item` is `TemplateScope` here
note: required by a bound in `collect`
--> /Users/stoyankirov/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:1891:19
|
1891 | fn collect<B: FromIterator<Self::Item>>(self) -> B
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Iterator::collect`
warning: unused variable: `file`
--> src/apis/verifications_api.rs:348:85
|
348 | ...on, file: Option<std::path::PathBuf>) -> Result<crate::models::VerificationFileR...
| ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
warning: variable does not need to be mutable
--> src/apis/verifications_api.rs:367:9
|
367 | let mut local_var_form = reqwest::multipart::Form::new();
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
Some errors have detailed explanations: E0277, E0282, E0412.
For more information about an error, try `rustc --explain E0277`.
warning: `ElasticEmail` (lib) generated 10 warnings
error: could not compile `ElasticEmail` (lib) due to 19 previous errors; 10 warnings emitted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.