pub struct MssqlTypeInfo { /* private fields */ }Expand description
Type information for an MSSQL ODBC value.
Implementations§
Source§impl MssqlTypeInfo
impl MssqlTypeInfo
Sourcepub const BIGINT: MssqlTypeInfo
pub const BIGINT: MssqlTypeInfo
BIGINT type information.
Sourcepub const BIT: MssqlTypeInfo
pub const BIT: MssqlTypeInfo
BIT type information.
Sourcepub const DATE: MssqlTypeInfo
pub const DATE: MssqlTypeInfo
DATE type information.
Sourcepub const DOUBLE: MssqlTypeInfo
pub const DOUBLE: MssqlTypeInfo
DOUBLE type information.
Sourcepub const INTEGER: MssqlTypeInfo
pub const INTEGER: MssqlTypeInfo
INTEGER type information.
Sourcepub const REAL: MssqlTypeInfo
pub const REAL: MssqlTypeInfo
REAL type information.
Sourcepub const SMALLINT: MssqlTypeInfo
pub const SMALLINT: MssqlTypeInfo
SMALLINT type information.
Sourcepub const TINYINT: MssqlTypeInfo
pub const TINYINT: MssqlTypeInfo
TINYINT type information.
Sourcepub const UNKNOWN: MssqlTypeInfo
pub const UNKNOWN: MssqlTypeInfo
UNKNOWN type information.
Sourcepub const TIME: MssqlTypeInfo
pub const TIME: MssqlTypeInfo
TIME type information with zero fractional precision.
Sourcepub const TIMESTAMP: MssqlTypeInfo
pub const TIMESTAMP: MssqlTypeInfo
TIMESTAMP type information with zero fractional precision.
Sourcepub const fn new(data_type: DataType) -> MssqlTypeInfo
pub const fn new(data_type: DataType) -> MssqlTypeInfo
Creates type information from an odbc-api data type.
Sourcepub const fn char(length: Option<NonZero<usize>>) -> MssqlTypeInfo
pub const fn char(length: Option<NonZero<usize>>) -> MssqlTypeInfo
Creates CHAR type information.
Sourcepub const fn float(precision: usize) -> MssqlTypeInfo
pub const fn float(precision: usize) -> MssqlTypeInfo
Creates FLOAT type information.
Sourcepub const fn time(precision: i16) -> MssqlTypeInfo
pub const fn time(precision: i16) -> MssqlTypeInfo
Creates TIME type information.
Sourcepub const fn timestamp(precision: i16) -> MssqlTypeInfo
pub const fn timestamp(precision: i16) -> MssqlTypeInfo
Creates TIMESTAMP type information.
Sourcepub const fn varchar(length: Option<NonZero<usize>>) -> MssqlTypeInfo
pub const fn varchar(length: Option<NonZero<usize>>) -> MssqlTypeInfo
Creates VARCHAR type information.
Sourcepub const fn varbinary(length: Option<NonZero<usize>>) -> MssqlTypeInfo
pub const fn varbinary(length: Option<NonZero<usize>>) -> MssqlTypeInfo
Creates VARBINARY type information.
Sourcepub const fn decimal(precision: usize, scale: i16) -> MssqlTypeInfo
pub const fn decimal(precision: usize, scale: i16) -> MssqlTypeInfo
Creates DECIMAL type information.
Sourcepub const fn numeric(precision: usize, scale: i16) -> MssqlTypeInfo
pub const fn numeric(precision: usize, scale: i16) -> MssqlTypeInfo
Creates NUMERIC type information.
Sourcepub const fn guid() -> MssqlTypeInfo
pub const fn guid() -> MssqlTypeInfo
Creates UNIQUEIDENTIFIER (GUID) type information.
MSSQL reports this as DataType::Other with SQL type code -11 (SQL_GUID).
Sourcepub const fn xml() -> MssqlTypeInfo
pub const fn xml() -> MssqlTypeInfo
Creates XML type information.
MSSQL reports this as DataType::Other with SQL type code -152 (SQL_SS_XML).
Sourcepub const fn datetimeoffset() -> MssqlTypeInfo
pub const fn datetimeoffset() -> MssqlTypeInfo
Creates DATETIMEOFFSET type information.
MSSQL reports this as DataType::Other with SQL type code -155 (SQL_SS_TIMESTAMPOFFSET).
Sourcepub const fn geometry() -> MssqlTypeInfo
pub const fn geometry() -> MssqlTypeInfo
Creates GEOMETRY/GEOGRAPHY (spatial UDT) type information.
MSSQL reports spatial types as DataType::Other with SQL type code -151
(SQL_SS_UDT — CLR User-Defined Type), which covers both geometry and
geography columns.
Trait Implementations§
Source§impl Clone for MssqlTypeInfo
impl Clone for MssqlTypeInfo
Source§fn clone(&self) -> MssqlTypeInfo
fn clone(&self) -> MssqlTypeInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MssqlTypeInfo
impl Debug for MssqlTypeInfo
Source§impl<'de> Deserialize<'de> for MssqlTypeInfo
impl<'de> Deserialize<'de> for MssqlTypeInfo
Source§fn deserialize<D>(
deserializer: D,
) -> Result<MssqlTypeInfo, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<MssqlTypeInfo, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl Display for MssqlTypeInfo
impl Display for MssqlTypeInfo
impl Eq for MssqlTypeInfo
Source§impl PartialEq for MssqlTypeInfo
impl PartialEq for MssqlTypeInfo
Source§fn eq(&self, other: &MssqlTypeInfo) -> bool
fn eq(&self, other: &MssqlTypeInfo) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for MssqlTypeInfo
impl Serialize for MssqlTypeInfo
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl StructuralPartialEq for MssqlTypeInfo
Source§impl TypeInfo for MssqlTypeInfo
impl TypeInfo for MssqlTypeInfo
fn is_null(&self) -> bool
Auto Trait Implementations§
impl Freeze for MssqlTypeInfo
impl RefUnwindSafe for MssqlTypeInfo
impl Send for MssqlTypeInfo
impl Sync for MssqlTypeInfo
impl Unpin for MssqlTypeInfo
impl UnsafeUnpin for MssqlTypeInfo
impl UnwindSafe for MssqlTypeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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