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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.