pub trait EventContentFromType: EventContent {
// Required method
fn from_parts(event_type: &str, content: &RawValue) -> Result<Self, Error>;
}
Available on crate feature
events
only.Expand description
Event content that can be deserialized with its event type.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.