I’ve been searching for a while, but I can’t seem to find anything that would tell me how to see why my
derive statement is not working. What is the magic incantation to show me what code is being generated?
I’m working with rocket.rs and trying to
#[derive(Serialize)] a custom struct. but it’s telling me that I haven’t satisfied the trait?
The following code:
❯ cargo build
Compiling derive-hate v0.1.0 (file:///Users/scull7/code/Rust/derive-hate)
error[E0277]: the trait bound
Foo: serde::ser::Serializeis not satisfied
35 | #[post("/foo", data = “”)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait
serde::ser::Serializeis not implemented for
= note: required because of the requirements on the impl of
= note: required by
rocket::handler::<impl rocket::Outcome<rocket::Response<'r>, rocket::http::Status, rocket::Data>>::of
error: aborting due to previous error
error: Could not compile
To learn more, run the command again with --verbose.