pub struct Column {
pub column_name: String,
pub datatype: DataType,
pub is_pk: bool,
pub not_null: bool,
pub is_unique: bool,
}Expand description
The schema for each SQL column in every table.
Per-column index state moved to Table::secondary_indexes in Phase 3e —
a single Column describes the declared schema (name, type, constraints)
and nothing more.
Fields§
§column_name: String§datatype: DataType§is_pk: bool§not_null: bool§is_unique: boolImplementations§
Trait Implementations§
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more