pub enum PrimitiveValue {
Number(f64),
Bool(bool),
Null,
}Variants§
Trait Implementations§
Source§impl Clone for PrimitiveValue
impl Clone for PrimitiveValue
Source§fn clone(&self) -> PrimitiveValue
fn clone(&self) -> PrimitiveValue
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 PrimitiveValue
impl Debug for PrimitiveValue
Source§impl<'de> Deserialize<'de> for PrimitiveValue
impl<'de> Deserialize<'de> for PrimitiveValue
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 From<PrimitiveValue> for SerializableValue
impl From<PrimitiveValue> for SerializableValue
Source§fn from(val: PrimitiveValue) -> Self
fn from(val: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveValue> for Value
impl From<PrimitiveValue> for Value
Source§fn from(val: PrimitiveValue) -> Self
fn from(val: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrimitiveValue
impl PartialEq for PrimitiveValue
Source§impl PartialOrd for PrimitiveValue
impl PartialOrd for PrimitiveValue
Source§impl Serialize for PrimitiveValue
impl Serialize for PrimitiveValue
impl Copy for PrimitiveValue
impl StructuralPartialEq for PrimitiveValue
Auto Trait Implementations§
impl Freeze for PrimitiveValue
impl RefUnwindSafe for PrimitiveValue
impl Send for PrimitiveValue
impl Sync for PrimitiveValue
impl Unpin for PrimitiveValue
impl UnwindSafe for PrimitiveValue
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