pub enum SqlConstraintKind {
PrimaryKey,
ForeignKey,
Unique,
NotNull,
Check,
Default,
Generated,
}Expand description
SQL constraint kind labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SqlConstraintKind
impl Clone for SqlConstraintKind
Source§fn clone(&self) -> SqlConstraintKind
fn clone(&self) -> SqlConstraintKind
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 SqlConstraintKind
impl Debug for SqlConstraintKind
Source§impl Default for SqlConstraintKind
impl Default for SqlConstraintKind
Source§fn default() -> SqlConstraintKind
fn default() -> SqlConstraintKind
Returns the “default value” for a type. Read more
Source§impl Display for SqlConstraintKind
impl Display for SqlConstraintKind
Source§impl FromStr for SqlConstraintKind
impl FromStr for SqlConstraintKind
Source§impl Hash for SqlConstraintKind
impl Hash for SqlConstraintKind
Source§impl Ord for SqlConstraintKind
impl Ord for SqlConstraintKind
Source§fn cmp(&self, other: &SqlConstraintKind) -> Ordering
fn cmp(&self, other: &SqlConstraintKind) -> Ordering
1.21.0 (const: unstable) · 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 SqlConstraintKind
impl PartialEq for SqlConstraintKind
Source§fn eq(&self, other: &SqlConstraintKind) -> bool
fn eq(&self, other: &SqlConstraintKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlConstraintKind
impl PartialOrd for SqlConstraintKind
impl Copy for SqlConstraintKind
impl Eq for SqlConstraintKind
impl StructuralPartialEq for SqlConstraintKind
Auto Trait Implementations§
impl Freeze for SqlConstraintKind
impl RefUnwindSafe for SqlConstraintKind
impl Send for SqlConstraintKind
impl Sync for SqlConstraintKind
impl Unpin for SqlConstraintKind
impl UnsafeUnpin for SqlConstraintKind
impl UnwindSafe for SqlConstraintKind
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