Struct rustorm::column::Column [−][src]
pub struct Column { pub table: TableName, pub name: ColumnName, pub comment: Option<String>, pub specification: ColumnSpecification, pub stat: Option<ColumnStat>, }
Fields
table: TableName
name: ColumnName
comment: Option<String>
specification: ColumnSpecification
stat: Option<ColumnStat>
Methods
impl Column
[src]
impl Column
pub fn is_autoincrement(&self) -> bool
[src]
pub fn is_autoincrement(&self) -> bool
check all the column constraint if any has AutoIncrement
pub fn default_is_generated_uuid(&self) -> bool
[src]
pub fn default_is_generated_uuid(&self) -> bool
check if any of the column constraint default is generated from uuid
pub fn is_not_null(&self) -> bool
[src]
pub fn is_not_null(&self) -> bool
pub fn get_sql_type(&self) -> SqlType
[src]
pub fn get_sql_type(&self) -> SqlType
pub fn cast_as(&self) -> Option<SqlType>
[src]
pub fn cast_as(&self) -> Option<SqlType>
pub fn has_generated_default(&self) -> bool
[src]
pub fn has_generated_default(&self) -> bool
Trait Implementations
impl Debug for Column
[src]
impl Debug for Column
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Column
[src]
impl PartialEq for Column
fn eq(&self, other: &Column) -> bool
[src]
fn eq(&self, other: &Column) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Column) -> bool
[src]
fn ne(&self, other: &Column) -> bool
This method tests for !=
.
impl Clone for Column
[src]
impl Clone for Column