[][src]Struct odbc_api::ColumnDescription

pub struct ColumnDescription {
    pub name: Vec<u16>,
    pub data_type: DataType,
    pub nullable: Nullable,
}

Describes the type and attributes of a column.

Fields

name: Vec<u16>

Column name. May be empty if unavailable.

data_type: DataType

Type of the column

nullable: Nullable

Indicates whether 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.

pub fn could_be_nullable(&self) -> bool[src]

true if the column is Nullable or it is not know whether the column is nullable. false if and only if the column is NoNulls.

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.