pub struct ColumnDefinition {
pub col_name: Name,
pub col_type: Option<Type>,
pub constraints: Vec<NamedColumnConstraint>,
pub flags: ColFlags,
}
Expand description
Table column definition
Fields§
§col_name: Name
column name
col_type: Option<Type>
column type
constraints: Vec<NamedColumnConstraint>
column constraints
flags: ColFlags
column flags
Implementations§
Source§impl ColumnDefinition
impl ColumnDefinition
Sourcepub fn new(
col_name: Name,
col_type: Option<Type>,
constraints: Vec<NamedColumnConstraint>,
) -> Result<Self, ParserError>
pub fn new( col_name: Name, col_type: Option<Type>, constraints: Vec<NamedColumnConstraint>, ) -> Result<Self, ParserError>
Constructor
Sourcepub fn add_column(
columns: &mut IndexMap<Name, Self>,
cd: Self,
) -> Result<(), ParserError>
pub fn add_column( columns: &mut IndexMap<Name, Self>, cd: Self, ) -> Result<(), ParserError>
Collector
Trait Implementations§
Source§impl Clone for ColumnDefinition
impl Clone for ColumnDefinition
Source§fn clone(&self) -> ColumnDefinition
fn clone(&self) -> ColumnDefinition
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColumnDefinition
impl Debug for ColumnDefinition
Source§impl PartialEq for ColumnDefinition
impl PartialEq for ColumnDefinition
Source§impl ToTokens for ColumnDefinition
impl ToTokens for ColumnDefinition
impl Eq for ColumnDefinition
impl StructuralPartialEq for ColumnDefinition
Auto Trait Implementations§
impl Freeze for ColumnDefinition
impl RefUnwindSafe for ColumnDefinition
impl Send for ColumnDefinition
impl Sync for ColumnDefinition
impl Unpin for ColumnDefinition
impl UnwindSafe for ColumnDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.