pub enum Value {
Show 43 variants
None,
Some(Box<Self>),
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<Self>),
Bytes(Bytes),
U8Map(HashMap<u8, Self>),
I8Map(HashMap<i8, Self>),
U16Map(HashMap<u16, Self>),
I16Map(HashMap<i16, Self>),
U32Map(HashMap<u32, Self>),
I32Map(HashMap<i32, Self>),
U64Map(HashMap<u64, Self>),
I64Map(HashMap<i64, Self>),
StringMap(HashMap<String, Self>),
UuidMap(HashMap<Uuid, Self>),
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<Self>)
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<Self>)
Bytes(Bytes)
U8Map(HashMap<u8, Self>)
I8Map(HashMap<i8, Self>)
U16Map(HashMap<u16, Self>)
I16Map(HashMap<i16, Self>)
U32Map(HashMap<u32, Self>)
I32Map(HashMap<i32, Self>)
U64Map(HashMap<u64, Self>)
I64Map(HashMap<i64, Self>)
StringMap(HashMap<String, Self>)
UuidMap(HashMap<Uuid, Self>)
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<'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<Value> for Value
impl Deserialize<Value> for Value
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl Introspectable for Value
Available on crate feature introspection only.
impl Introspectable for Value
Available on crate feature
introspection only.fn layout() -> LayoutIr
fn lexical_id() -> LexicalId
fn add_references(_references: &mut References<'_>)
Source§impl Serialize<Value> for &Value
impl Serialize<Value> for &Value
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
Source§impl Serialize<Value> for Value
impl Serialize<Value> for Value
fn serialize(self, serializer: Serializer<'_>) -> Result<(), SerializeError>
fn serializes_as_some(&self) -> bool
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)