pub struct ColumnDef {
pub name: NameId,
pub declared_type: Option<Vec<u8>>,
pub constraints: Vec<(Option<NameId>, ColumnConstraint)>,
pub span: Span,
}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.
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