pub enum Value {
Int(i64),
UInt(u64),
Float(f64),
Timestamp(Timestamp),
Interval(SignedDuration),
Boolean(bool),
String(String),
Binary(String),
Array(String),
Object(String),
Any(String),
Null,
}Expand description
A typed result cell. Equality compares encoded array, object, any, and binary values as strings; floats use Rust’s usual equality, including NaN != NaN.
Variants§
Int(i64)
Signed integer value.
UInt(u64)
Unsigned integer value.
Float(f64)
Float value.
Timestamp(Timestamp)
Timestamp value.
Interval(SignedDuration)
Interval value.
Boolean(bool)
Boolean value.
String(String)
String value.
Binary(String)
Binary data represented as a hex string.
Array(String)
Array of values, represented in its string format.
Object(String)
Object represented in its string format.
Any(String)
Any value, represented in its string format.
Null
Null value.
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 UnsafeUnpin 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