pub enum StoredConstraintType {
PrimaryKey {
columns: Vec<String>,
},
Unique {
columns: Vec<String>,
},
ForeignKey {
columns: Vec<String>,
ref_table: String,
ref_columns: Vec<String>,
},
Check {
expression_text: String,
},
}Expand description
Stored constraint type.
Variants§
Trait Implementations§
Source§impl Clone for StoredConstraintType
impl Clone for StoredConstraintType
Source§fn clone(&self) -> StoredConstraintType
fn clone(&self) -> StoredConstraintType
Returns a duplicate 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 StoredConstraintType
impl Debug for StoredConstraintType
Source§impl<'de> Deserialize<'de> for StoredConstraintType
impl<'de> Deserialize<'de> for StoredConstraintType
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
Auto Trait Implementations§
impl Freeze for StoredConstraintType
impl RefUnwindSafe for StoredConstraintType
impl Send for StoredConstraintType
impl Sync for StoredConstraintType
impl Unpin for StoredConstraintType
impl UnsafeUnpin for StoredConstraintType
impl UnwindSafe for StoredConstraintType
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