pub struct Column {
pub name: String,
pub col_type: ColumnType,
pub ordinal: ColumnId,
pub is_primary_key: bool,
pub is_nullable: bool,
}Expand description
Column definition within a table
Fields§
§name: StringColumn name
col_type: ColumnTypeColumn type
ordinal: ColumnIdPosition in table (0-indexed)
is_primary_key: boolWhether this column is part of the primary key
is_nullable: boolWhether this column allows NULL values
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)