pub enum Value {
}Expand description
Represents any type of data that can be stored in the database.
This can be any type of data that implements Serialize and Deserialize from the serde
crate.
Variants§
String(String)
Bool(bool)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
Usize(usize)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
I128(i128)
Isize(isize)
F32(f32)
F64(f64)
None
Trait Implementations§
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 IntoValue for Value
impl IntoValue for Value
fn into_value(self) -> Value
fn into_string(self) -> String
fn into_bool(self) -> bool
fn into_u8(self) -> u8
fn into_u16(self) -> u16
fn into_u32(self) -> u32
fn into_u64(self) -> u64
fn into_u128(self) -> u128
fn into_usize(self) -> usize
fn into_i8(self) -> i8
fn into_i16(self) -> i16
fn into_i32(self) -> i32
fn into_i64(self) -> i64
fn into_i128(self) -> i128
fn into_isize(self) -> isize
fn into_f32(self) -> f32
fn into_f64(self) -> f64
source§impl PartialEq for Value
impl PartialEq for Value
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