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

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

Implementors