pub struct ColumnDefinition {
pub col_name: Name,
pub col_type: Option<Type>,
pub constraints: Vec<NamedColumnConstraint>,
}Expand description
Table column definition
Fields§
§col_name: Namecolumn name
col_type: Option<Type>column type
constraints: Vec<NamedColumnConstraint>column constraints
Trait Implementations§
Source§impl Clone for ColumnDefinition
impl Clone for ColumnDefinition
Source§fn clone(&self) -> ColumnDefinition
fn clone(&self) -> ColumnDefinition
Returns a duplicate 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 Display for ColumnDefinition
impl Display for ColumnDefinition
Source§impl<'a> IntoIterator for &'a ColumnDefinition
impl<'a> IntoIterator for &'a ColumnDefinition
Source§type Item = &'a ColumnConstraint
type Item = &'a ColumnConstraint
The type of the elements being iterated over.
Source§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§impl ToTokens for ColumnDefinition
impl ToTokens for ColumnDefinition
Source§fn to_tokens<S: TokenStream + ?Sized, C: ToSqlContext>(
&self,
s: &mut S,
context: &C,
) -> Result<(), S::Error>
fn to_tokens<S: TokenStream + ?Sized, C: ToSqlContext>( &self, s: &mut S, context: &C, ) -> Result<(), S::Error>
Send token(s) to the specified stream with context
fn displayer<'a, 'b, C: ToSqlContext>(
&'b self,
ctx: &'a C,
) -> SqlDisplayer<'a, 'b, C, Self>where
Self: Sized,
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