pub struct ColumnDef {
pub name: String,
pub declared_type: Option<String>,
pub not_null: bool,
pub default: Option<String>,
pub generated: Generated,
}Expand description
A column as the create statement declared it.
Fields§
§name: String§declared_type: Option<String>The declared type, exactly as written, with its arguments: INTEGER,
NVARCHAR(160), DOUBLE PRECISION. None when the column was
declared without one, which SQLite allows.
not_null: bool§default: Option<String>The default, as written. Kept as text because a default can be an expression, and deciding what a given expression means is a question for whoever imports it.
generated: GeneratedTrait Implementations§
impl Eq for ColumnDef
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