pub enum PropertyValue {
String(RcString),
Bytes(Vec<u8, Global>),
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, Global>)
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<PropertyValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<PropertyValue, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&str> for PropertyValue
impl From<&str> for PropertyValue
source§fn from(v: &str) -> PropertyValue
fn from(v: &str) -> PropertyValue
Converts to this type from the input type.
source§impl From<String> for PropertyValue
impl From<String> for PropertyValue
source§fn from(v: String) -> PropertyValue
fn from(v: String) -> PropertyValue
Converts to this type from the input type.
source§impl From<f64> for PropertyValue
impl From<f64> for PropertyValue
source§fn from(v: f64) -> PropertyValue
fn from(v: f64) -> PropertyValue
Converts to this type from the input type.
source§impl From<i32> for PropertyValue
impl From<i32> for PropertyValue
source§fn from(v: i32) -> PropertyValue
fn from(v: i32) -> PropertyValue
Converts to this type from the input type.
source§impl From<u32> for PropertyValue
impl From<u32> for PropertyValue
source§fn from(v: u32) -> PropertyValue
fn from(v: u32) -> PropertyValue
Converts to this type from the input type.
source§impl Serialize for PropertyValue
impl Serialize for PropertyValue
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more