You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound NewsReportHeading: MessageSerde` is not satisfied
34 | type Heading = NewsReportHeading;
| ^^^ the trait `MessageSerde` is not implemented for `NewsReportHeading`
= help: the following other types implement trait `MessageSerde`:
prost_wkt_types::Duration
Timestamp
Struct
Value
prost_wkt_types::ListValue
prost_wkt_types::Any
prost_wkt_types::Empty
FieldMask
note: required by a bound in `Report::Heading`
31 | type Heading: MessageSerde + Clone;
| ^^^^^^^^^^^^ required by this bound in `Report::Heading`
I only get this error if I use a version of prost greater than 11.9 but I'd like to stay up to date with the version of prost. In addition, if I use any version of prost < 11.9, I get a different error message regarding the usage of prost::Message
the trait bound `<protobuf message name>: prost::Message` is not satisfied
the following other types implement trait `prost::Message`:
bool
i32
i64
u32
u64
f32
f64
Box<M>
I tried to look through the release of prost https://github.com/tokio-rs/prost/releases/tag/v0.12.0 but couldn't quite find what might've caused this change. Would appreciate any help and insight to help me understand prost::Message and prost-wkt:MessageSerde!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I am trying to use MessageSerde in defining a trait such as
When I attempt to implement trait Example
I see that my generated protobuf contains which seems to be all I need for MessageSerde trait which is
prost::Message + std::any::Any
But I get the following Rust Error
I only get this error if I use a version of prost greater than 11.9 but I'd like to stay up to date with the version of prost. In addition, if I use any version of prost < 11.9, I get a different error message regarding the usage of
prost::Message
I tried to look through the release of prost https://github.com/tokio-rs/prost/releases/tag/v0.12.0 but couldn't quite find what might've caused this change. Would appreciate any help and insight to help me understand prost::Message and prost-wkt:MessageSerde!
Beta Was this translation helpful? Give feedback.
All reactions