Trait RawExt

Source
pub trait RawExt<T>{
    // Required method
    fn deserialize_with_type(&self, event_type: &str) -> Result<T, Error>;
}
Available on crate feature events only.
Expand description

Extension trait for Raw<T>.

Required Methods§

Source

fn deserialize_with_type(&self, event_type: &str) -> Result<T, Error>

Try to deserialize the JSON as an event’s content with the given event type.

Implementors§

Source§

impl<T> RawExt<T> for Raw<T>