pub enum PropertyValue {
String(RcString),
Bytes(Vec<u8>),
SInt(i32),
UInt(u32),
Float(f64),
}Expand description
Property value type. Properties can hold different types that are encapsulated in this enum.
Variants§
String(RcString)
Property is a string.
Bytes(Vec<u8>)
Property is a byte string.
SInt(i32)
Property is a signed integer.
UInt(u32)
Property is an unsigned integer.
Float(f64)
Property is a float.
Implementations§
Trait Implementations§
source§impl Clone for PropertyValue
impl Clone for PropertyValue
source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
source§impl<'de> Deserialize<'de> for PropertyValue
impl<'de> Deserialize<'de> for PropertyValue
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