Struct BaseColumn
pub struct BaseColumn {
pub name: String,
pub ty: ColType,
pub nullable: bool,
}Expand description
A column in a BaseTableSchema.
Fields§
§name: String§ty: ColType§nullable: booltrue when the column is nullable — its generated client type is T | null and (design 206
Phase 2) it may be omitted from an insert. PK columns are always false here (row identity),
regardless of the DDL’s NOT NULL.
Trait Implementations§
§impl Clone for BaseColumn
impl Clone for BaseColumn
§fn clone(&self) -> BaseColumn
fn clone(&self) -> BaseColumn
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BaseColumn
impl RefUnwindSafe for BaseColumn
impl Send for BaseColumn
impl Sync for BaseColumn
impl Unpin for BaseColumn
impl UnsafeUnpin for BaseColumn
impl UnwindSafe for BaseColumn
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