[][src]Struct cassandra_proto::frame::frame_result::ColSpec

pub struct ColSpec {
    pub ksname: Option<CString>,
    pub tablename: Option<CString>,
    pub name: CString,
    pub col_type: ColTypeOption,
}

Single column specification.

Fields

ksname: Option<CString>

The initial is a [string] and is only present if the Global_tables_spec flag is NOT set

tablename: Option<CString>

The initial is a [string] and is present if the Global_tables_spec flag is NOT set

name: CString

Column name

col_type: ColTypeOption

Column type defined in spec in 4.2.5.2

Methods

impl ColSpec[src]

pub fn parse_colspecs(
    cursor: &mut Cursor<&[u8]>,
    column_count: i32,
    with_globale_table_spec: bool
) -> Vec<ColSpec>
[src]

parse_colspecs tables mutable cursor, number of columns (column_count) and flags that indicates if Global_tables_spec is specified. It returns column_count of ColSpecs.

Trait Implementations

impl Clone for ColSpec[src]

impl Debug for ColSpec[src]

Auto Trait Implementations

impl RefUnwindSafe for ColSpec

impl Send for ColSpec

impl Sync for ColSpec

impl Unpin for ColSpec

impl UnwindSafe for ColSpec

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.