pub struct FlattenedJson { /* private fields */ }
Expand description
The flattened representation of a JSON object.
Implementations§
Source§impl FlattenedJson
impl FlattenedJson
Sourcepub fn get(&self, path: &str) -> Option<&FlattenedJsonValue>
pub fn get(&self, path: &str) -> Option<&FlattenedJsonValue>
Get the value associated with the given path
.
Sourcepub fn get_str(&self, path: &str) -> Option<&str>
pub fn get_str(&self, path: &str) -> Option<&str>
Get the value associated with the given path
, if it is a string.
Sourcepub fn contains_mentions(&self) -> bool
pub fn contains_mentions(&self) -> bool
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 copy 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