Struct sea_schema::mysql::def::ColumnInfo [−][src]
pub struct ColumnInfo {
pub name: String,
pub col_type: ColumnType,
pub null: bool,
pub key: ColumnKey,
pub default: Option<ColumnDefault>,
pub extra: ColumnExtra,
pub expression: Option<ColumnExpression>,
pub comment: String,
}
This is supported on crate features
mysql
and def
only.Fields
name: String
The name of the column
col_type: ColumnType
The type of the column with additional definitions, e.g. precision, length
null: bool
Can this column contains null
key: ColumnKey
Is this column indexed
default: Option<ColumnDefault>
Default value expression for this column, if any
extra: ColumnExtra
Extra definitions for this column, e.g. auto_increment
expression: Option<ColumnExpression>
The generation expression if this is a generated column
comment: String
User comments
Implementations
This is supported on crate feature
writer
only.This is supported on crate feature
writer
only.This is supported on crate feature
writer
only.This is supported on crate feature
writer
only.Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ColumnInfo
impl Send for ColumnInfo
impl Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnwindSafe for ColumnInfo
Blanket Implementations
Mutably borrows from an owned value. Read more