[][src]Struct odbc_iter::Column

pub struct Column<'r, 's, 'c, S, C: Configuration> {
    pub column_type: &'r ColumnType,
    pub configuration: &'s C,
    // some fields omitted
}

Represents SQL table column which can be converted to Rust native type.

Fields

column_type: &'r ColumnType

Type information about this column

configuration: &'s C

Data access configuration

Implementations

impl<'r, 's, 'c, S, C: Configuration> Column<'r, 's, 'c, S, C>[src]

pub fn into_bool(self) -> Result<Option<bool>, DatumAccessError>[src]

Reads bool value from column.

pub fn into_i8(self) -> Result<Option<i8>, DatumAccessError>[src]

Reads i8 value from column.

pub fn into_i16(self) -> Result<Option<i16>, DatumAccessError>[src]

Reads i16 value from column.

pub fn into_i32(self) -> Result<Option<i32>, DatumAccessError>[src]

Reads i32 value from column.

pub fn into_i64(self) -> Result<Option<i64>, DatumAccessError>[src]

Reads i64 value from column.

pub fn into_f32(self) -> Result<Option<f32>, DatumAccessError>[src]

Reads f32 value from column.

pub fn into_f64(self) -> Result<Option<f64>, DatumAccessError>[src]

Reads f64 value from column.

pub fn into_string(self) -> Result<Option<String>, DatumAccessError>[src]

Reads String value from column.

pub fn into_timestamp(self) -> Result<Option<SqlTimestamp>, DatumAccessError>[src]

Reads SqlTimestamp value from column.

pub fn into_date(self) -> Result<Option<SqlDate>, DatumAccessError>[src]

Reads SqlDate value from column.

pub fn into_time(self) -> Result<Option<SqlSsTime2>, DatumAccessError>[src]

Reads SqlSsTime2 value from column.

pub fn index(&self) -> u16[src]

Gets column number in the row (first column is 0)

Trait Implementations

impl<'r, 's, 'c, S, C: Configuration> Debug for Column<'r, 's, 'c, S, C>[src]

Auto Trait Implementations

impl<'r, 's, 'c, S, C> RefUnwindSafe for Column<'r, 's, 'c, S, C> where
    C: RefUnwindSafe,
    S: RefUnwindSafe

impl<'r, 's, 'c, S, C> !Send for Column<'r, 's, 'c, S, C>

impl<'r, 's, 'c, S, C> !Sync for Column<'r, 's, 'c, S, C>

impl<'r, 's, 'c, S, C> Unpin for Column<'r, 's, 'c, S, C> where
    'c: 'r,
    's: 'r, 

impl<'r, 's, 'c, S, C> !UnwindSafe for Column<'r, 's, 'c, S, C>

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> ToErrorNoContext<T> for T[src]

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.

impl<E, C> WrapContext<C> for E[src]

type ContextError = ErrorContext<E, C>