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