Enum tiberius::ColumnType
source · [−]pub enum ColumnType {
Show 35 variants
Null,
Bit,
Int1,
Int2,
Int4,
Int8,
Datetime4,
Float4,
Float8,
Money,
Datetime,
Money4,
Guid,
Intn,
Bitn,
Decimaln,
Numericn,
Floatn,
Datetimen,
Daten,
Timen,
Datetime2,
DatetimeOffsetn,
BigVarBin,
BigVarChar,
BigBinary,
BigChar,
NVarchar,
NChar,
Xml,
Udt,
Text,
Image,
NText,
SSVariant,
}
Expand description
The type of the column.
Variants
Null
The column doesn’t have a specified type.
Bit
A bit or boolean value.
Int1
An 8-bit integer value.
Int2
A 16-bit integer value.
Int4
A 32-bit integer value.
Int8
A 64-bit integer value.
Datetime4
A 32-bit datetime value.
Float4
A 32-bit floating point value.
Float8
A 64-bit floating point value.
Money
Money value.
Datetime
A TDS 7.2 datetime value.
Money4
A 32-bit money value.
Guid
A unique identifier, UUID.
Intn
N-bit integer value (variable).
Bitn
A bit value in a variable-length type.
Decimaln
A decimal value (same as Numericn
).
Numericn
A numeric value (same as Decimaln
).
Floatn
A n-bit floating point value.
Datetimen
A n-bit datetime value (TDS 7.2).
Daten
A n-bit date value (TDS 7.3).
Timen
A n-bit time value (TDS 7.3).
Datetime2
A n-bit datetime2 value (TDS 7.3).
DatetimeOffsetn
A n-bit datetime value with an offset (TDS 7.3).
BigVarBin
A variable binary value.
BigVarChar
A large variable string value.
BigBinary
A binary value.
BigChar
A string value.
NVarchar
A variable string value with UTF-16 encoding.
NChar
A string value with UTF-16 encoding.
Xml
A XML value.
Udt
User-defined type.
Text
A text value (deprecated).
Image
A image value (deprecated).
NText
A text value with UTF-16 encoding (deprecated).
SSVariant
An SQL variant type.
Trait Implementations
sourceimpl Clone for ColumnType
impl Clone for ColumnType
sourcefn clone(&self) -> ColumnType
fn clone(&self) -> ColumnType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColumnType
impl Debug for ColumnType
sourceimpl PartialEq<ColumnType> for ColumnType
impl PartialEq<ColumnType> for ColumnType
impl Copy for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnwindSafe for ColumnType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more