pub enum ForeignKeyMatch {
Full,
Partial,
Simple,
}Expand description
The MATCH mode of a foreign key, governing how a composite key containing
NULLs matches. A bare REFERENCES omits it; PostgreSQL reports the omitted
form as SIMPLE. A leaf vocabulary enum (no meta): like DropBehavior it
holds no spanned children, so its span lives on the owning ForeignKeyRef.
Variants§
Full
MATCH FULL — a partially-null referencing key is rejected.
Partial
MATCH PARTIAL — reserved by the standard; unimplemented by most engines.
Simple
MATCH SIMPLE — the default; a null in any referencing column skips the check.
Trait Implementations§
Source§impl Clone for ForeignKeyMatch
impl Clone for ForeignKeyMatch
Source§fn clone(&self) -> ForeignKeyMatch
fn clone(&self) -> ForeignKeyMatch
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 moreimpl Copy for ForeignKeyMatch
Source§impl Debug for ForeignKeyMatch
impl Debug for ForeignKeyMatch
Source§impl<'de> Deserialize<'de> for ForeignKeyMatch
impl<'de> Deserialize<'de> for ForeignKeyMatch
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 ForeignKeyMatch
Source§impl Hash for ForeignKeyMatch
impl Hash for ForeignKeyMatch
Source§impl PartialEq for ForeignKeyMatch
impl PartialEq for ForeignKeyMatch
Source§impl Render for ForeignKeyMatch
impl Render for ForeignKeyMatch
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for ForeignKeyMatch
impl Serialize for ForeignKeyMatch
impl StructuralPartialEq for ForeignKeyMatch
Auto Trait Implementations§
impl Freeze for ForeignKeyMatch
impl RefUnwindSafe for ForeignKeyMatch
impl Send for ForeignKeyMatch
impl Sync for ForeignKeyMatch
impl Unpin for ForeignKeyMatch
impl UnsafeUnpin for ForeignKeyMatch
impl UnwindSafe for ForeignKeyMatch
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