pub enum Value {
Show 35 variants
Nothing,
Uuid(Uuid),
Str(String),
Bytes(Bytes),
Int16(i16),
Int32(i32),
Int64(i64),
Float32(f32),
Float64(f64),
BigInt(BigInt),
ConfigMemory(ConfigMemory),
Decimal(Decimal),
Bool(bool),
Datetime(Datetime),
LocalDatetime(LocalDatetime),
LocalDate(LocalDate),
LocalTime(LocalTime),
Duration(Duration),
RelativeDuration(RelativeDuration),
DateDuration(DateDuration),
Json(Json),
Set(Vec<Value>),
Object {
shape: ObjectShape,
fields: Vec<Option<Value>>,
},
SparseObject(SparseObject),
Tuple(Vec<Value>),
NamedTuple {
shape: NamedTupleShape,
fields: Vec<Value>,
},
SQLRow {
shape: SQLRowShape,
fields: Vec<Value>,
},
Array(Vec<Value>),
Vector(Vec<f32>),
Enum(EnumValue),
Range(Range<Box<Value>>),
PostGisGeometry(Bytes),
PostGisGeography(Bytes),
PostGisBox2d(Bytes),
PostGisBox3d(Bytes),
}
Variants§
Nothing
Uuid(Uuid)
Str(String)
Bytes(Bytes)
Int16(i16)
Int32(i32)
Int64(i64)
Float32(f32)
Float64(f64)
BigInt(BigInt)
ConfigMemory(ConfigMemory)
Decimal(Decimal)
Bool(bool)
Datetime(Datetime)
LocalDatetime(LocalDatetime)
LocalDate(LocalDate)
LocalTime(LocalTime)
Duration(Duration)
RelativeDuration(RelativeDuration)
DateDuration(DateDuration)
Json(Json)
Set(Vec<Value>)
Object
SparseObject(SparseObject)
Tuple(Vec<Value>)
NamedTuple
SQLRow
Array(Vec<Value>)
Vector(Vec<f32>)
Enum(EnumValue)
Range(Range<Box<Value>>)
PostGisGeometry(Bytes)
PostGisGeography(Bytes)
PostGisBox2d(Bytes)
PostGisBox3d(Bytes)
Implementations§
Trait Implementations§
Source§impl From<LocalDatetime> for Value
impl From<LocalDatetime> for Value
Source§fn from(v: LocalDatetime) -> Value
fn from(v: LocalDatetime) -> Value
Converts to this type from the input type.
Source§impl QueryResult for Value
impl QueryResult for Value
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