pub enum ColumnConstraint {
NotNull {
span: Span,
},
PrimaryKey {
span: Span,
},
Unique {
span: Span,
},
Default {
value: Expr,
span: Span,
},
}Variants§
Trait Implementations§
Source§impl Clone for ColumnConstraint
impl Clone for ColumnConstraint
Source§fn clone(&self) -> ColumnConstraint
fn clone(&self) -> ColumnConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColumnConstraint
impl Debug for ColumnConstraint
Source§impl<'de> Deserialize<'de> for ColumnConstraint
impl<'de> Deserialize<'de> for ColumnConstraint
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 Serialize for ColumnConstraint
impl Serialize for ColumnConstraint
Auto Trait Implementations§
impl Freeze for ColumnConstraint
impl RefUnwindSafe for ColumnConstraint
impl Send for ColumnConstraint
impl Sync for ColumnConstraint
impl Unpin for ColumnConstraint
impl UnsafeUnpin for ColumnConstraint
impl UnwindSafe for ColumnConstraint
Blanket Implementations§
impl<T> Allocation for T
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