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§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl AsSerializeArg for Value
impl AsSerializeArg for Value
type SerializeArg<'a> = &'a Value
fn as_serialize_arg<'a>(&'a self) -> Self::SerializeArg<'a>where
Self: 'a,
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
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
Source§impl Deserialize for Value
impl Deserialize for Value
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl Introspectable for Value
impl Introspectable for Value
fn layout() -> Layout
fn lexical_id() -> LexicalId
fn add_references(_references: &mut References<'_>)
Source§impl Serialize for Value
impl Serialize for Value
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
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