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§
source§impl Clone for ColumnType
impl Clone for ColumnType
source§fn clone(&self) -> ColumnType
fn clone(&self) -> ColumnType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColumnType
impl Debug for ColumnType
source§impl PartialEq for ColumnType
impl PartialEq for ColumnType
impl Copy for ColumnType
impl Eq for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnwindSafe for ColumnType
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)