pub enum ConstraintState {
Unique {
name: String,
columns: Vec<String>,
},
Check {
name: String,
sql: String,
},
}Expand description
A table-level constraint.
Variants§
Implementations§
Source§impl ConstraintState
impl ConstraintState
Sourcepub fn from_meta(meta: &ConstraintMeta) -> Self
pub fn from_meta(meta: &ConstraintMeta) -> Self
Copy a ConstraintMeta.
Trait Implementations§
Source§impl Clone for ConstraintState
impl Clone for ConstraintState
Source§fn clone(&self) -> ConstraintState
fn clone(&self) -> ConstraintState
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 ConstraintState
impl Debug for ConstraintState
Source§impl<'de> Deserialize<'de> for ConstraintState
impl<'de> Deserialize<'de> for ConstraintState
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
impl Eq for ConstraintState
Source§impl PartialEq for ConstraintState
impl PartialEq for ConstraintState
Source§impl Serialize for ConstraintState
impl Serialize for ConstraintState
impl StructuralPartialEq for ConstraintState
Auto Trait Implementations§
impl Freeze for ConstraintState
impl RefUnwindSafe for ConstraintState
impl Send for ConstraintState
impl Sync for ConstraintState
impl Unpin for ConstraintState
impl UnsafeUnpin for ConstraintState
impl UnwindSafe for ConstraintState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.