pub enum MaterializedValue {
Nil,
Bool(bool),
Int(i64),
Float(NotNan<f64>),
Str(String),
Text(String),
Map(BTreeMap<String, MaterializedValue>),
Set(Vec<PrimitiveValue>),
}Expand description
Fully resolved document tree value.
Returned by Document::checkout() to represent the entire document state
without exposing internal types. Unlike Value, this enum contains
the actual nested data rather than CRDT handles.
Variants§
Nil
Nil/null value.
Bool(bool)
Boolean value.
Int(i64)
64-bit signed integer.
Float(NotNan<f64>)
64-bit floating point (never NaN).
Str(String)
String value (UTF-8).
Text(String)
Text CRDT content.
Map(BTreeMap<String, MaterializedValue>)
Nested map with string keys.
Set(Vec<PrimitiveValue>)
OR-Set containing primitive values.
Trait Implementations§
Source§impl Clone for MaterializedValue
impl Clone for MaterializedValue
Source§fn clone(&self) -> MaterializedValue
fn clone(&self) -> MaterializedValue
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 MaterializedValue
impl Debug for MaterializedValue
Source§impl<'de> Deserialize<'de> for MaterializedValue
impl<'de> Deserialize<'de> for MaterializedValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MaterializedValue
impl PartialEq for MaterializedValue
Source§impl Serialize for MaterializedValue
impl Serialize for MaterializedValue
impl Eq for MaterializedValue
impl StructuralPartialEq for MaterializedValue
Auto Trait Implementations§
impl Freeze for MaterializedValue
impl RefUnwindSafe for MaterializedValue
impl Send for MaterializedValue
impl Sync for MaterializedValue
impl Unpin for MaterializedValue
impl UnsafeUnpin for MaterializedValue
impl UnwindSafe for MaterializedValue
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