Struct server::storage::types::Column [] [src]

pub struct Column {
    pub name: String,
    pub sql_type: SqlType,
    pub is_primary_key: bool,
    pub allow_null: bool,
    pub description: String,
}
[]

A table column. Has a name, a type, ...

Fields

name
sql_type
is_primary_key
allow_null
description

Methods

impl Column

fn new(name: &str, sql_type: SqlType, allow_null: bool, description: &str, is_primary_key: bool) -> Column[]

Creates a new column object Returns with Column

fn get_sql_type(&self) -> &SqlType

fn get_column_name(&self) -> &str

fn get_size(&self) -> u32

Trait Implementations

Derived Implementations

impl Clone for Column

fn clone(&self) -> Column

fn clone_from(&mut self, source: &Self)

impl Encodable for Column

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Column

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Column, __D::Error>

impl Debug for Column

fn fmt(&self, __arg_0: &mut Formatter) -> Result