pub enum Value {
Show variants
Null,
Bool(bool),
TinyInt(i8),
SmallInt(i16),
Int(i32),
BigInt(i64),
TinyUnsigned(u8),
SmallUnsigned(u16),
Unsigned(u32),
BigUnsigned(u64),
Float(f32),
Double(f64),
String(Box<String>),
Bytes(Box<Vec<u8>>),
Json(Box<Json>),
DateTime(Box<NaiveDateTime>),
Uuid(Box<Uuid>),
}
Expand description
This is supported on crate feature with-json
only.
This is supported on crate feature with-chrono
only.
This is supported on crate feature with-uuid
only.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
impl From<Uuid> for Value
This is supported on crate feature with-uuid
only.
impl From<Value> for Value
This is supported on crate feature with-json
only.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Converts the value of self
into the binary format of the specified
Postgres Type
, appending it to out
. Read more
Determines if a value of this type can be converted to the specified
Postgres Type
. Read more
An adaptor method used internally by Rust-Postgres. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Returns a reference to self
as a ToSql
trait object.
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,