Page MenuHomeDevCentral
Paste P324

Alkane build on Jenkins CD with rocket 0.4.11 [rust-brown]
ActivePublic

Authored by dereckson on Apr 10 2023, 17:48.
error[E0277]: the trait bound `std::string::String: FromDataSimple` is not satisfied
--> src/server/requests.rs:37:5
|
37 | context: String,
| ^^^^^^^^^^^^^^^ the trait `FromDataSimple` is not implemented for `std::string::String`
|
= help: the following other types implement trait `FromData<'a>`:
<Form<T> as FromData<'f>>
<LenientForm<T> as FromData<'f>>
<Result<T, <T as FromData<'a>>::Error> as FromData<'a>>
<rocket::Data as FromData<'f>>
<rocket_contrib::json::Json<T> as FromData<'a>>
<std::option::Option<T> as FromData<'a>>
= note: required for `std::string::String` to implement `FromData<'_>`
error[E0277]: the trait bound `std::string::String: FromDataSimple` is not satisfied
--> src/server/requests.rs:62:5
|
62 | context: String,
| ^^^^^^^^^^^^^^^ the trait `FromDataSimple` is not implemented for `std::string::String`
|
= help: the following other types implement trait `FromData<'a>`:
<Form<T> as FromData<'f>>
<LenientForm<T> as FromData<'f>>
<Result<T, <T as FromData<'a>>::Error> as FromData<'a>>
<rocket::Data as FromData<'f>>
<rocket_contrib::json::Json<T> as FromData<'a>>
<std::option::Option<T> as FromData<'a>>
= note: required for `std::string::String` to implement `FromData<'_>`
error[E0277]: the trait bound `std::string::String: FromDataSimple` is not satisfied
--> src/server/requests.rs:87:5
|
87 | context: String,
| ^^^^^^^^^^^^^^^ the trait `FromDataSimple` is not implemented for `std::string::String`
|
= help: the following other types implement trait `FromData<'a>`:
<Form<T> as FromData<'f>>
<LenientForm<T> as FromData<'f>>
<Result<T, <T as FromData<'a>>::Error> as FromData<'a>>
<rocket::Data as FromData<'f>>
<rocket_contrib::json::Json<T> as FromData<'a>>
<std::option::Option<T> as FromData<'a>>
= note: required for `std::string::String` to implement `FromData<'_>`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `alkane` (bin "alkane") due to 3 previous errors
make: *** [Makefile:34: target/release/alkane] Error 101