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

source§

fn clone(&self) -> ColumnType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ColumnType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<ColumnType> for ColumnType

source§

fn eq(&self, other: &ColumnType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ColumnType

source§

impl Eq for ColumnType

source§

impl StructuralEq for ColumnType

source§

impl StructuralPartialEq for ColumnType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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