pub struct FlattenedJson { /* private fields */ }Expand description
The flattened representation of a JSON object.
Implementations§
Source§impl FlattenedJson
 
impl FlattenedJson
Sourcepub fn from_raw<T>(raw: &Raw<T>) -> FlattenedJson
 Available on crate feature events only.
pub fn from_raw<T>(raw: &Raw<T>) -> FlattenedJson
events only.Create a FlattenedJson from Raw.
Sourcepub fn get(&self, path: &str) -> Option<&FlattenedJsonValue>
 Available on crate feature events only.
pub fn get(&self, path: &str) -> Option<&FlattenedJsonValue>
events only.Get the value associated with the given path.
Sourcepub fn get_str(&self, path: &str) -> Option<&str>
 Available on crate feature events only.
pub fn get_str(&self, path: &str) -> Option<&str>
events only.Get the value associated with the given path, if it is a string.
Sourcepub fn contains_mentions(&self) -> bool
 Available on crate feature events only.
pub fn contains_mentions(&self) -> bool
events only.Whether this flattened JSON contains an m.mentions property under the content property.
Trait Implementations§
Source§impl Clone for FlattenedJson
 
impl Clone for FlattenedJson
Source§fn clone(&self) -> FlattenedJson
 
fn clone(&self) -> FlattenedJson
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl Freeze for FlattenedJson
impl RefUnwindSafe for FlattenedJson
impl Send for FlattenedJson
impl Sync for FlattenedJson
impl Unpin for FlattenedJson
impl UnwindSafe for FlattenedJson
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more