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