[][src]Enum odbc_api::buffers::BufferKind

pub enum BufferKind {
    Text {
        max_str_len: usize,
    },
    F64,
    F32,
    Date,
    Time,
    Timestamp,
    I8,
    I16,
    I32,
    I64,
    U8,
    Bit,
}

This class is used together with crate::buffers::BufferDescription to specify the layout of buffers bound to ODBC cursors and statements.

Variants

Text

Text buffer holding strings with binary length of up to max_str_len.

Fields of Text

max_str_len: usize

Maximum string length. Terminating zero is excluded, i.e. memory for it will be implicitly allocated if required.

F64

64 bit floating point

F32

32 bit floating point

Date

Describes a buffer holding crate::sys::Date values.

Time

Describes a buffer holding crate::sys::Time values.

Timestamp

Describes a buffer holding crate::sys::Timestamp values.

I8

Signed 8 Bit integer

I16

Signed 16 Bit integer

I32

Signed 32 Bit integer

I64

Signed 64 Bit integer

U8

Unsigned 8 Bit integer

Bit

Can either be zero or one

Implementations

impl BufferKind[src]

pub fn from_data_type(data_type: DataType) -> Option<Self>[src]

Describe a buffer which fits best the SQL Data Type.

Trait Implementations

impl Clone for BufferKind[src]

impl Copy for BufferKind[src]

impl Debug for BufferKind[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.