Struct sqlite3_parser::ast::ColumnDefinition
source · pub struct ColumnDefinition {
pub col_name: Name,
pub col_type: Option<Type>,
pub constraints: Vec<NamedColumnConstraint>,
}
Expand description
Table column definition
Fields§
§col_name: Name
column name
col_type: Option<Type>
column type
constraints: Vec<NamedColumnConstraint>
column constraints
Implementations§
source§impl ColumnDefinition
impl ColumnDefinition
sourcepub fn add_column(
columns: &mut IndexMap<Name, ColumnDefinition>,
cd: ColumnDefinition,
) -> Result<(), ParserError>
pub fn add_column( columns: &mut IndexMap<Name, ColumnDefinition>, cd: ColumnDefinition, ) -> Result<(), ParserError>
Constructor
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<'a> IntoIterator for &'a ColumnDefinition
impl<'a> IntoIterator for &'a ColumnDefinition
§type Item = &'a ColumnConstraint
type Item = &'a ColumnConstraint
The type of the elements being iterated over.
§type IntoIter = Map<Iter<'a, NamedColumnConstraint>, fn(_: &'a NamedColumnConstraint) -> &'a ColumnConstraint>
type IntoIter = Map<Iter<'a, NamedColumnConstraint>, fn(_: &'a NamedColumnConstraint) -> &'a ColumnConstraint>
Which kind of iterator are we turning this into?
source§impl PartialEq for ColumnDefinition
impl PartialEq for ColumnDefinition
source§fn eq(&self, other: &ColumnDefinition) -> bool
fn eq(&self, other: &ColumnDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.