[][src]Struct pg_wire::ColumnMetadata

pub struct ColumnMetadata {
    pub name: String,
    pub type_id: u32,
    pub type_size: i16,
}

Struct description of metadata that describes how client should interpret outgoing selected data

Fields

name: String

name of the column that was specified in query

type_id: u32

PostgreSQL data type id

type_size: i16

PostgreSQL data type size

Implementations

impl ColumnMetadata[src]

pub fn new<S: ToString>(name: S, pg_type: PgType) -> ColumnMetadata[src]

Creates new column metadata

Trait Implementations

impl Clone for ColumnMetadata[src]

impl Debug for ColumnMetadata[src]

impl PartialEq<ColumnMetadata> for ColumnMetadata[src]

impl StructuralPartialEq for ColumnMetadata[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.