pub struct ColumnDef {
pub name: NameId,
pub declared_type: Option<Vec<u8>>,
pub constraints: Vec<(Option<NameId>, ColumnConstraint)>,
pub span: Span,
pub deferred_failure: Option<&'static str>,
}Expand description
One column of a CREATE TABLE.
Fields§
§name: NameIdThe column name.
declared_type: Option<Vec<u8>>The declared type, exactly as written, when there was one.
constraints: Vec<(Option<NameId>, ColumnConstraint)>The constraints, in written order, each with its optional name.
span: SpanThe span of the definition.
deferred_failure: Option<&'static str>A reason SQLite refuses the definition only after it has changed the
schema, set when the definition is read for ALTER TABLE ... ADD COLUMN.
For example subqueries prohibited in CHECK constraints. The failure is
reported when the statement runs, as SQLite reports it, and not when it
is compiled.
Trait 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