Struct sql_type::schema::Column

source ·
pub struct Column<'a> {
    pub identifier: &'a str,
    pub identifier_span: Span,
    pub type_: FullType<'a>,
    pub auto_increment: bool,
}
Expand description

A column in a schema

Fields§

§identifier: &'a str§identifier_span: Span

Span of identifier

§type_: FullType<'a>

Type of the column

§auto_increment: bool

True if the column is auto_increment

Trait Implementations§

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.