[][src]Struct odbc_api::ColumnDescription

pub struct ColumnDescription {
    pub name: Vec<WChar>,
    pub data_type: SqlDataType,
    pub column_size: ULen,
    pub decimal_digits: SmallInt,
    pub nullable: Nullable,
}

Describes the type and attributes of a column.

Fields

name: Vec<WChar>

Colmun name. May be empty if unavailable.

data_type: SqlDataType

Type of the column

column_size: ULen

Size of column element

decimal_digits: SmallIntnullable: Nullable

Indicates wether the column is nullable or not.

Implementations

impl ColumnDescription[src]

pub fn name_to_string(&self) -> Result<String, DecodeUtf16Error>[src]

Converts the internal UTF16 representation of the column name into UTF8 and returns the result as a String.

Trait Implementations

impl Clone for ColumnDescription[src]

impl Debug for ColumnDescription[src]

impl Default for ColumnDescription[src]

impl Eq for ColumnDescription[src]

impl PartialEq<ColumnDescription> for ColumnDescription[src]

impl StructuralEq for ColumnDescription[src]

impl StructuralPartialEq for ColumnDescription[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.