pub enum Value {
Show 24 variants
Null,
Bool(bool),
Char(char),
Str(String),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
I128(i128),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
U128(u128),
F32(f32),
F64(f64),
Bytes(Vec<u8>),
Date(NaiveDate),
Time(NaiveTime),
DateTime(NaiveDateTime),
DateTimeUtc(DateTime<Utc>),
Decimal(Decimal),
List(Vec<Value>),
Map(HashMap<String, Value>),
}Variants§
Null
Bool(bool)
Char(char)
Str(String)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
I128(i128)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
F32(f32)
F64(f64)
Bytes(Vec<u8>)
Date(NaiveDate)
Date without time zone
Time(NaiveTime)
Time without date
DateTime(NaiveDateTime)
Date and time without time zone
DateTimeUtc(DateTime<Utc>)
Date and time in UTC
Decimal(Decimal)
Arbitrary-precision decimal number
List(Vec<Value>)
Ordered list of values (e.g. arrays, tuples)
Map(HashMap<String, Value>)
Key-value map (e.g. structs, JSON objects)
Trait Implementations§
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