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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more