Enum psl::datamodel_connector::ConstraintType
source · pub enum ConstraintType {
PrimaryKey,
ForeignKey,
KeyOrIdx,
Default,
}
Variants§
Trait Implementations§
source§impl Clone for ConstraintType
impl Clone for ConstraintType
source§fn clone(&self) -> ConstraintType
fn clone(&self) -> ConstraintType
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 ConstraintType
impl Debug for ConstraintType
source§impl Ord for ConstraintType
impl Ord for ConstraintType
source§fn cmp(&self, other: &ConstraintType) -> Ordering
fn cmp(&self, other: &ConstraintType) -> 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 ConstraintType
impl PartialEq for ConstraintType
source§fn eq(&self, other: &ConstraintType) -> bool
fn eq(&self, other: &ConstraintType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConstraintType
impl PartialOrd for ConstraintType
source§fn partial_cmp(&self, other: &ConstraintType) -> Option<Ordering>
fn partial_cmp(&self, other: &ConstraintType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ConstraintType
impl Eq for ConstraintType
impl StructuralEq for ConstraintType
impl StructuralPartialEq for ConstraintType
Auto Trait Implementations§
impl RefUnwindSafe for ConstraintType
impl Send for ConstraintType
impl Sync for ConstraintType
impl Unpin for ConstraintType
impl UnwindSafe for ConstraintType
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.