pub struct ColumnDef {
pub name: String,
pub data_type: String,
pub is_nullable: bool,
pub default: Option<String>,
pub ordinal_position: i32,
}Expand description
Definition of a table column.
Fields§
§name: StringName of the column.
data_type: StringSQL data type of the column.
is_nullable: boolWhether the column allows NULL values.
default: Option<String>Default value expression, if any.
ordinal_position: i32Position of the column within its table (1-based).
Trait Implementations§
impl StructuralPartialEq for ColumnDef
Auto Trait Implementations§
impl Freeze for ColumnDef
impl RefUnwindSafe for ColumnDef
impl Send for ColumnDef
impl Sync for ColumnDef
impl Unpin for ColumnDef
impl UnsafeUnpin for ColumnDef
impl UnwindSafe for ColumnDef
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