pub struct EnforcedKey {
pub constraint: TableKeyConstraint,
pub keys: Vec<IndexKey>,
pub index: Option<RelationIdentity>,
pub predicate: Option<Box<Expr>>,
pub constraint_owned: bool,
}Expand description
Runtime key enforcement keeps index predicates separate from SQL constraints.
Fields§
§constraint: TableKeyConstraint§keys: Vec<IndexKey>§index: Option<RelationIdentity>§predicate: Option<Box<Expr>>§constraint_owned: boolTrait Implementations§
Source§impl Clone for EnforcedKey
impl Clone for EnforcedKey
Source§fn clone(&self) -> EnforcedKey
fn clone(&self) -> EnforcedKey
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 EnforcedKey
impl Debug for EnforcedKey
Source§impl Deref for EnforcedKey
impl Deref for EnforcedKey
Source§impl From<TableKeyConstraint> for EnforcedKey
impl From<TableKeyConstraint> for EnforcedKey
Source§fn from(constraint: TableKeyConstraint) -> Self
fn from(constraint: TableKeyConstraint) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EnforcedKey
impl RefUnwindSafe for EnforcedKey
impl Send for EnforcedKey
impl Sync for EnforcedKey
impl Unpin for EnforcedKey
impl UnsafeUnpin for EnforcedKey
impl UnwindSafe for EnforcedKey
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> ErasedDestructor for Twhere
T: 'static,
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