Enum aldrin_core::Value
source · pub enum Value {
Show 43 variants
None,
Some(Box<Value>),
Bool(bool),
U8(u8),
I8(i8),
U16(u16),
I16(i16),
U32(u32),
I32(i32),
U64(u64),
I64(i64),
F32(f32),
F64(f64),
String(String),
Uuid(Uuid),
ObjectId(ObjectId),
ServiceId(ServiceId),
Vec(Vec<Value>),
Bytes(Vec<u8>),
U8Map(HashMap<u8, Value>),
I8Map(HashMap<i8, Value>),
U16Map(HashMap<u16, Value>),
I16Map(HashMap<i16, Value>),
U32Map(HashMap<u32, Value>),
I32Map(HashMap<i32, Value>),
U64Map(HashMap<u64, Value>),
I64Map(HashMap<i64, Value>),
StringMap(HashMap<String, Value>),
UuidMap(HashMap<Uuid, Value>),
U8Set(HashSet<u8>),
I8Set(HashSet<i8>),
U16Set(HashSet<u16>),
I16Set(HashSet<i16>),
U32Set(HashSet<u32>),
I32Set(HashSet<i32>),
U64Set(HashSet<u64>),
I64Set(HashSet<i64>),
StringSet(HashSet<String>),
UuidSet(HashSet<Uuid>),
Struct(Struct),
Enum(Box<Enum>),
Sender(ChannelCookie),
Receiver(ChannelCookie),
}Variants§
None
Some(Box<Value>)
Bool(bool)
U8(u8)
I8(i8)
U16(u16)
I16(i16)
U32(u32)
I32(i32)
U64(u64)
I64(i64)
F32(f32)
F64(f64)
String(String)
Uuid(Uuid)
ObjectId(ObjectId)
ServiceId(ServiceId)
Vec(Vec<Value>)
Bytes(Vec<u8>)
U8Map(HashMap<u8, Value>)
I8Map(HashMap<i8, Value>)
U16Map(HashMap<u16, Value>)
I16Map(HashMap<i16, Value>)
U32Map(HashMap<u32, Value>)
I32Map(HashMap<i32, Value>)
U64Map(HashMap<u64, Value>)
I64Map(HashMap<i64, Value>)
StringMap(HashMap<String, Value>)
UuidMap(HashMap<Uuid, Value>)
U8Set(HashSet<u8>)
I8Set(HashSet<i8>)
U16Set(HashSet<u16>)
I16Set(HashSet<i16>)
U32Set(HashSet<u32>)
I32Set(HashSet<i32>)
U64Set(HashSet<u64>)
I64Set(HashSet<i64>)
StringSet(HashSet<String>)
UuidSet(HashSet<Uuid>)
Struct(Struct)
Enum(Box<Enum>)
Sender(ChannelCookie)
Receiver(ChannelCookie)
Implementations§
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for Value
impl<'arbitrary> Arbitrary<'arbitrary> for Value
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl Deserialize for Value
impl Deserialize for Value
fn deserialize( deserializer: Deserializer<'_, '_> ) -> Result<Self, DeserializeError>
source§impl PartialEq for Value
impl PartialEq for Value
source§impl Serialize for Value
impl Serialize for Value
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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