pub struct ColumnSpecification {
pub column: Column,
pub sql_type: SqlType,
pub constraints: Vec<ColumnConstraint>,
pub comment: Option<String>,
}
Fields§
§column: Column
§sql_type: SqlType
§constraints: Vec<ColumnConstraint>
§comment: Option<String>
Implementations§
Source§impl ColumnSpecification
impl ColumnSpecification
pub fn new(column: Column, sql_type: SqlType) -> ColumnSpecification
pub fn with_constraints( column: Column, sql_type: SqlType, constraints: Vec<ColumnConstraint>, ) -> ColumnSpecification
Trait Implementations§
Source§impl Clone for ColumnSpecification
impl Clone for ColumnSpecification
Source§fn clone(&self) -> ColumnSpecification
fn clone(&self) -> ColumnSpecification
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 ColumnSpecification
impl Debug for ColumnSpecification
Source§impl<'de> Deserialize<'de> for ColumnSpecification
impl<'de> Deserialize<'de> for ColumnSpecification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ColumnSpecification
impl Display for ColumnSpecification
Source§impl Hash for ColumnSpecification
impl Hash for ColumnSpecification
Source§impl PartialEq for ColumnSpecification
impl PartialEq for ColumnSpecification
Source§impl Serialize for ColumnSpecification
impl Serialize for ColumnSpecification
impl Eq for ColumnSpecification
impl StructuralPartialEq for ColumnSpecification
Auto Trait Implementations§
impl Freeze for ColumnSpecification
impl RefUnwindSafe for ColumnSpecification
impl Send for ColumnSpecification
impl Sync for ColumnSpecification
impl Unpin for ColumnSpecification
impl UnwindSafe for ColumnSpecification
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