Trait matrix_sdk_base::ruma::events::RawExt
pub trait RawExt<T>where
T: EventContentFromType,{
// Required method
fn deserialize_with_type(
&self,
event_type: <T as EventContent>::EventType
) -> Result<T, Error>;
}
Expand description
Extension trait for [Raw<T>
].
Required Methods§
fn deserialize_with_type(
&self,
event_type: <T as EventContent>::EventType
) -> Result<T, Error>
fn deserialize_with_type( &self, event_type: <T as EventContent>::EventType ) -> Result<T, Error>
Try to deserialize the JSON as an event’s content with the given event type.