Trait ruma::events::RawExt [−][src]
pub trait RawExt<T> where
T: EventContent, { fn deserialize_content(&self, event_type: &str) -> Result<T, Error>; }
This is supported on crate feature
events
only.Expand description
Extension trait for Raw<_>
.
Required methods
fn deserialize_content(&self, event_type: &str) -> Result<T, Error>
fn deserialize_content(&self, event_type: &str) -> Result<T, Error>
Try to deserialize the JSON as an event’s content.