#[non_exhaustive]pub enum AttributeValue {
Null,
Bool(bool),
Integer(i64),
Unsigned(u64),
Float(FiniteF64),
String(String),
List(Vec<AttributeValue>),
Object(BTreeMap<String, AttributeValue>),
}Expand description
Deterministic JSON-like attribute value for graph extensions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
Bool(bool)
Integer(i64)
Unsigned(u64)
Float(FiniteF64)
String(String)
List(Vec<AttributeValue>)
Object(BTreeMap<String, AttributeValue>)
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeValue
impl Debug for AttributeValue
Source§impl<'de> Deserialize<'de> for AttributeValue
impl<'de> Deserialize<'de> for AttributeValue
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
impl Eq for AttributeValue
Source§impl From<&str> for AttributeValue
impl From<&str> for AttributeValue
Source§impl From<BTreeMap<String, AttributeValue>> for AttributeValue
impl From<BTreeMap<String, AttributeValue>> for AttributeValue
Source§impl From<LegacyPoint> for AttributeValue
impl From<LegacyPoint> for AttributeValue
Source§fn from(value: LegacyPoint) -> Self
fn from(value: LegacyPoint) -> Self
Converts to this type from the input type.
Source§impl From<String> for AttributeValue
impl From<String> for AttributeValue
Source§impl From<Vec<AttributeValue>> for AttributeValue
impl From<Vec<AttributeValue>> for AttributeValue
Source§fn from(value: Vec<AttributeValue>) -> Self
fn from(value: Vec<AttributeValue>) -> Self
Converts to this type from the input type.
Source§impl From<bool> for AttributeValue
impl From<bool> for AttributeValue
Source§impl From<i32> for AttributeValue
impl From<i32> for AttributeValue
Source§impl From<i64> for AttributeValue
impl From<i64> for AttributeValue
Source§impl From<u32> for AttributeValue
impl From<u32> for AttributeValue
Source§impl From<u64> for AttributeValue
impl From<u64> for AttributeValue
Source§impl Hash for AttributeValue
impl Hash for AttributeValue
Source§impl Ord for AttributeValue
impl Ord for AttributeValue
Source§fn cmp(&self, other: &AttributeValue) -> Ordering
fn cmp(&self, other: &AttributeValue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributeValue
impl PartialEq for AttributeValue
Source§impl PartialOrd for AttributeValue
impl PartialOrd for AttributeValue
Source§impl Serialize for AttributeValue
impl Serialize for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl Freeze for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnsafeUnpin for AttributeValue
impl UnwindSafe for AttributeValue
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