pub enum PrimitiveValue {
String(String),
U64(u64),
I64(i64),
F32(f32),
F64(f64),
Bool(bool),
Null,
}
Expand description
Primitive types supported by Properties
Variants§
String(String)
String type utf8 encoded
U64(u64)
unsigned 64 bit integer
I64(i64)
signed 64 bit integer
F32(f32)
floating point number
F64(f64)
double precision floating point number
Bool(bool)
boolean
Null
null
Trait Implementations§
Source§impl Clone for PrimitiveValue
impl Clone for PrimitiveValue
Source§fn clone(&self) -> PrimitiveValue
fn clone(&self) -> PrimitiveValue
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 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 PartialEq for PrimitiveValue
impl PartialEq for PrimitiveValue
Source§impl Serialize for PrimitiveValue
impl Serialize 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