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<Option<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncoderForExt for Twhere
T: ?Sized,
impl<T> EncoderForExt for Twhere
T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.