Struct sql_parser::ast::defs::ddl::ColumnDef [−][src]
pub struct ColumnDef<T: AstInfo> {
pub name: Ident,
pub data_type: DataType<T>,
pub collation: Option<UnresolvedObjectName>,
pub options: Vec<ColumnOptionDef<T>>,
}
Expand description
SQL column definition
Fields
name: Ident
data_type: DataType<T>
collation: Option<UnresolvedObjectName>
options: Vec<ColumnOptionDef<T>>
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ColumnDef<T> where
<T as AstInfo>::Id: RefUnwindSafe,
<T as AstInfo>::ObjectName: RefUnwindSafe,
impl<T> Unpin for ColumnDef<T> where
<T as AstInfo>::ObjectName: Unpin,
impl<T> UnwindSafe for ColumnDef<T> where
<T as AstInfo>::Id: UnwindSafe,
<T as AstInfo>::ObjectName: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more