pub enum TableConstraint {
PrimaryKey {
columns: Vec<Ident>,
not_enforced: bool,
},
ForeignKey {
name: Option<Ident>,
columns: Vec<Ident>,
foreign_table: ObjectName,
referred_columns: Vec<Ident>,
not_enforced: bool,
},
}Variants§
Trait Implementations§
Source§impl Clone for TableConstraint
impl Clone for TableConstraint
Source§impl Debug for TableConstraint
impl Debug for TableConstraint
Source§impl<'de> Deserialize<'de> for TableConstraint
impl<'de> Deserialize<'de> for TableConstraint
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 TableConstraint
Source§impl Hash for TableConstraint
impl Hash for TableConstraint
Source§impl PartialEq for TableConstraint
impl PartialEq for TableConstraint
Source§impl Serialize for TableConstraint
impl Serialize for TableConstraint
impl StructuralPartialEq for TableConstraint
Auto Trait Implementations§
impl Forget for TableConstraint
impl Freeze for TableConstraint
impl Move for TableConstraint
impl RefUnwindSafe for TableConstraint
impl Send for TableConstraintwhere
RawVecInner: Send,
impl Sync for TableConstraintwhere
RawVecInner: Sync,
impl Unpin for TableConstraint
impl UnsafeUnpin for TableConstraintwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Ident>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for TableConstraintwhere
RawVecInner: UnwindSafe,
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.