Struct ruma_common::push::FlattenedJson
source · 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 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