pub enum ConstraintEnforcementMode {
Immediate,
Deferred,
}Expand description
Controls when constraint validation occurs for new writes.
Variants§
Immediate
Perform all constraint checks before rows become visible.
Deferred
Defer checks so callers can load data quickly and validate later.
Implementations§
Source§impl ConstraintEnforcementMode
impl ConstraintEnforcementMode
pub const fn is_immediate(self) -> bool
pub const fn is_deferred(self) -> bool
Trait Implementations§
Source§impl Clone for ConstraintEnforcementMode
impl Clone for ConstraintEnforcementMode
Source§fn clone(&self) -> ConstraintEnforcementMode
fn clone(&self) -> ConstraintEnforcementMode
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 ConstraintEnforcementMode
impl Debug for ConstraintEnforcementMode
Source§impl Default for ConstraintEnforcementMode
impl Default for ConstraintEnforcementMode
Source§fn default() -> ConstraintEnforcementMode
fn default() -> ConstraintEnforcementMode
Returns the “default value” for a type. Read more
impl Copy for ConstraintEnforcementMode
impl<'__de> Decode<'__de> for ConstraintEnforcementModewhere
'__de:,
impl Encode for ConstraintEnforcementMode
impl Eq for ConstraintEnforcementMode
impl StructuralPartialEq for ConstraintEnforcementMode
Auto Trait Implementations§
impl Freeze for ConstraintEnforcementMode
impl RefUnwindSafe for ConstraintEnforcementMode
impl Send for ConstraintEnforcementMode
impl Sync for ConstraintEnforcementMode
impl Unpin for ConstraintEnforcementMode
impl UnwindSafe for ConstraintEnforcementMode
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more