pub enum ParameterValue {
}
Expand description
Values used in parameterized queries
Variants§
Boolean(bool)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
Floating32(f32)
Floating64(f64)
Str(String)
Binary(Vec<u8>)
Date((i32, u8, u8))
Time((u8, u8, u8, u32))
(year, month, day)
Datetime((i32, u8, u8, u8, u8, u8, u32))
(hour, minute, second, nanosecond) Date-time types are always treated as UTC (without timezone info). The instant is represented as a (year, month, day, hour, minute, second, nanosecond) tuple.
Timestamp(i64)
Unix timestamp (seconds since epoch)
DbNull
Trait Implementations§
Source§impl Clone for ParameterValue
impl Clone for ParameterValue
Source§fn clone(&self) -> ParameterValue
fn clone(&self) -> ParameterValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParameterValue
impl Debug for ParameterValue
Source§impl From<ParameterValue> for ParameterValue
impl From<ParameterValue> for ParameterValue
Source§fn from(value: ParameterValue) -> ParameterValue
fn from(value: ParameterValue) -> ParameterValue
Converts to this type from the input type.
impl ComponentType for ParameterValue
impl Lift for ParameterValue
impl Lower for ParameterValue
Auto Trait Implementations§
impl Freeze for ParameterValue
impl RefUnwindSafe for ParameterValue
impl Send for ParameterValue
impl Sync for ParameterValue
impl Unpin for ParameterValue
impl UnwindSafe for ParameterValue
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more