pub trait RawExt<T: EventContentFromType> {
// Required method
fn deserialize_with_type(&self, event_type: &str) -> Result<T>;
}Expand description
Extension trait for Raw<T>.
Required Methods§
Sourcefn deserialize_with_type(&self, event_type: &str) -> Result<T>
fn deserialize_with_type(&self, event_type: &str) -> Result<T>
Try to deserialize the JSON as an event’s content with the given event type.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".