pub enum ColumnData<'a> {
Show 18 variants U8(Option<u8>), I16(Option<i16>), I32(Option<i32>), I64(Option<i64>), F32(Option<f32>), F64(Option<f64>), Bit(Option<bool>), String(Option<Cow<'a, str>>), Guid(Option<Uuid>), Binary(Option<Cow<'a, [u8]>>), Numeric(Option<Numeric>), Xml(Option<Cow<'a, XmlData>>), DateTime(Option<DateTime>), SmallDateTime(Option<SmallDateTime>), Time(Option<Time>), Date(Option<Date>), DateTime2(Option<DateTime2>), DateTimeOffset(Option<DateTimeOffset>),
}
Expand description

A container of a value that can be represented as a TDS value.

Variants

U8(Option<u8>)

8-bit integer, unsigned.

I16(Option<i16>)

16-bit integer, signed.

I32(Option<i32>)

32-bit integer, signed.

I64(Option<i64>)

64-bit integer, signed.

F32(Option<f32>)

32-bit floating point number.

F64(Option<f64>)

64-bit floating point number.

Bit(Option<bool>)

Boolean.

String(Option<Cow<'a, str>>)

A string value.

Guid(Option<Uuid>)

A Guid (UUID) value.

Binary(Option<Cow<'a, [u8]>>)

Binary data.

Numeric(Option<Numeric>)

Numeric value (a decimal).

Xml(Option<Cow<'a, XmlData>>)

XML data.

DateTime(Option<DateTime>)

DateTime value.

SmallDateTime(Option<SmallDateTime>)

A small DateTime value.

Time(Option<Time>)

Available on crate feature tds73 only.

Time value.

Date(Option<Date>)

Available on crate feature tds73 only.

Date value.

DateTime2(Option<DateTime2>)

Available on crate feature tds73 only.

DateTime2 value.

DateTimeOffset(Option<DateTimeOffset>)

Available on crate feature tds73 only.

DateTime2 value with an offset.

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