Enum libreda_db::property_storage::PropertyValue
source · [−]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
sourceimpl PropertyValue
impl PropertyValue
Trait Implementations
sourceimpl Clone for PropertyValue
impl Clone for PropertyValue
sourcefn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PropertyValue
impl Debug for PropertyValue
sourceimpl<'de> Deserialize<'de> for PropertyValue
impl<'de> Deserialize<'de> for PropertyValue
sourcefn 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
sourceimpl From<&Arc<String>> for PropertyValue
impl From<&Arc<String>> for PropertyValue
sourceimpl From<&str> for PropertyValue
impl From<&str> for PropertyValue
sourceimpl From<Arc<String>> for PropertyValue
impl From<Arc<String>> for PropertyValue
sourceimpl From<String> for PropertyValue
impl From<String> for PropertyValue
sourceimpl From<f64> for PropertyValue
impl From<f64> for PropertyValue
sourceimpl From<i32> for PropertyValue
impl From<i32> for PropertyValue
sourceimpl From<u32> for PropertyValue
impl From<u32> for PropertyValue
sourceimpl Serialize for PropertyValue
impl Serialize for PropertyValue
sourceimpl<'a> TryInto<&'a str> for &'a PropertyValue
impl<'a> TryInto<&'a str> for &'a PropertyValue
Auto Trait Implementations
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more