Struct msi::Column [] [src]

pub struct Column { /* fields omitted */ }

A database column.

Methods

impl Column
[src]

Begins building a new column with the given name.

Examples

let column = msi::Column::build("Foo").nullable().int16();
assert_eq!(column.name(), "Foo");
assert!(column.is_nullable());
assert_eq!(column.coltype(), msi::ColumnType::Int16);

Returns the name of the column.

Returns the type of data stored in the column.

Returns true if values in this column can be localized.

Returns true if values in this column can be null.

Returns true if this is primary key column.

Returns the (min, max) integer value range for this column, if any.

Returns the string value category for this column, if any.

Returns the list of valid enum values for this column, if any.

Returns true if the given value is valid for this column.

Trait Implementations

impl Clone for Column
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more