Enum serde_dynamic_typing::typing::AnyValue [−][src]
#[non_exhaustive]
pub enum AnyValue {
Bool(Boolean),
Integer(Integer),
Float(Float),
Utf8String(Utf8String),
Bytes(Bytes),
Sequence(Sequence),
Map(Map),
Enum(Enumeration),
None,
}
Expand description
A simplified type model which can represent various data structures and allows dynamic runtime inspection
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.
A boolean value
Tuple Fields of Bool
0: Boolean
An integer value
Tuple Fields of Integer
0: Integer
A floating point value
Tuple Fields of Float
0: Float
An UTF-8 string value
Tuple Fields of Utf8String
0: Utf8String
A binary vector
Tuple Fields of Bytes
0: Bytes
A sequence
Tuple Fields of Sequence
0: Sequence
A map
Tuple Fields of Map
0: Map
An enum value
Tuple Fields of Enum
0: Enumeration
A non-existant value
Trait Implementations
Performs the conversion.
Performs the conversion.
Creates a value from an iterator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnyValue
impl UnwindSafe for AnyValue
Blanket Implementations
Mutably borrows from an owned value. Read more