pub enum MssqlArgumentValue {
Text(String),
Bytes(Vec<u8>),
Int(i64),
Bit(bool),
Float(f64),
Date(Date),
Time(Time),
Timestamp(Timestamp),
Null(MssqlTypeInfo),
}Expand description
Values that can currently be bound to MSSQL ODBC parameters.
Variants§
Text(String)
UTF-8 text parameter.
Bytes(Vec<u8>)
Binary parameter.
Int(i64)
Signed integer parameter (all integer types including u8/u16/u32/u64
that fit within i64 range are encoded here; unsigned values above
i64::MAX are rejected at encode time).
Bit(bool)
Boolean parameter.
Float(f64)
Floating point parameter.
Date(Date)
Date parameter.
Time(Time)
Time parameter.
Timestamp(Timestamp)
Timestamp parameter.
Null(MssqlTypeInfo)
Typed NULL parameter.
Trait Implementations§
Source§impl Clone for MssqlArgumentValue
impl Clone for MssqlArgumentValue
Source§fn clone(&self) -> MssqlArgumentValue
fn clone(&self) -> MssqlArgumentValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MssqlArgumentValue
impl Debug for MssqlArgumentValue
Source§impl PartialEq for MssqlArgumentValue
impl PartialEq for MssqlArgumentValue
Source§fn eq(&self, other: &MssqlArgumentValue) -> bool
fn eq(&self, other: &MssqlArgumentValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MssqlArgumentValue
Auto Trait Implementations§
impl Freeze for MssqlArgumentValue
impl RefUnwindSafe for MssqlArgumentValue
impl Send for MssqlArgumentValue
impl Sync for MssqlArgumentValue
impl Unpin for MssqlArgumentValue
impl UnsafeUnpin for MssqlArgumentValue
impl UnwindSafe for MssqlArgumentValue
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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