pub enum ColumnConstraints {
NotNull,
PrimaryKey,
ForeignKey,
Unique,
Check(String),
Default(String),
Index,
}
Variants§
Trait Implementations§
Source§impl Clone for ColumnConstraints
impl Clone for ColumnConstraints
Source§fn clone(&self) -> ColumnConstraints
fn clone(&self) -> ColumnConstraints
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 ColumnConstraints
impl Debug for ColumnConstraints
Source§impl Hash for ColumnConstraints
impl Hash for ColumnConstraints
Source§impl Ord for ColumnConstraints
impl Ord for ColumnConstraints
Source§fn cmp(&self, other: &ColumnConstraints) -> Ordering
fn cmp(&self, other: &ColumnConstraints) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ColumnConstraints
impl PartialEq for ColumnConstraints
Source§impl PartialOrd for ColumnConstraints
impl PartialOrd for ColumnConstraints
Source§impl Serialize for ColumnConstraints
impl Serialize for ColumnConstraints
impl Eq for ColumnConstraints
impl StructuralPartialEq for ColumnConstraints
Auto Trait Implementations§
impl Freeze for ColumnConstraints
impl RefUnwindSafe for ColumnConstraints
impl Send for ColumnConstraints
impl Sync for ColumnConstraints
impl Unpin for ColumnConstraints
impl UnwindSafe for ColumnConstraints
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