pub struct ContentValue(pub Value);Expand description
Represents any valid ssb legacy message value that can be used as the content of a message, preserving the order of object entries.
On deserialization, this enforces that the value is an object with a correct type entry.
Tuple Fields§
§0: ValueTrait Implementations§
Source§impl Clone for ContentValue
impl Clone for ContentValue
Source§fn clone(&self) -> ContentValue
fn clone(&self) -> ContentValue
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 moreSource§impl Debug for ContentValue
impl Debug for ContentValue
Source§impl<'de> Deserialize<'de> for ContentValue
impl<'de> Deserialize<'de> for ContentValue
Source§fn deserialize<D>(deserializer: D) -> Result<ContentValue, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ContentValue, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContentValue
impl PartialEq for ContentValue
Source§impl Serialize for ContentValue
impl Serialize for ContentValue
impl Eq for ContentValue
impl StructuralPartialEq for ContentValue
Auto Trait Implementations§
impl Freeze for ContentValue
impl RefUnwindSafe for ContentValue
impl Send for ContentValue
impl Sync for ContentValue
impl Unpin for ContentValue
impl UnwindSafe for ContentValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.