pub struct ConstraintFragment { /* private fields */ }Expand description
One source constraint declaration.
Implementations§
Source§impl ConstraintFragment
impl ConstraintFragment
Sourcepub fn check(name: SchemaName, expression: SourceCheckExpr) -> Self
pub fn check(name: SchemaName, expression: SourceCheckExpr) -> Self
Construct one general source check.
Sourcepub fn targeted_rule(rule: TargetedRuleFragment) -> Self
pub fn targeted_rule(rule: TargetedRuleFragment) -> Self
Construct one source-bound targeted durable rule.
Sourcepub const fn source_key(&self) -> &ConstraintSourceKey
pub const fn source_key(&self) -> &ConstraintSourceKey
Borrow the typed proposal key derived from the current declaration.
Sourcepub const fn name(&self) -> &SchemaName
pub const fn name(&self) -> &SchemaName
Borrow the current constraint name.
Sourcepub const fn kind(&self) -> &ConstraintFragmentKind
pub const fn kind(&self) -> &ConstraintFragmentKind
Borrow the exact source constraint kind.
Trait Implementations§
Source§impl CandidType for ConstraintFragment
impl CandidType for ConstraintFragment
Source§impl Clone for ConstraintFragment
impl Clone for ConstraintFragment
Source§fn clone(&self) -> ConstraintFragment
fn clone(&self) -> ConstraintFragment
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 ConstraintFragment
impl Debug for ConstraintFragment
Source§impl<'de> Deserialize<'de> for ConstraintFragment
impl<'de> Deserialize<'de> for ConstraintFragment
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 ConstraintFragment
Source§impl PartialEq for ConstraintFragment
impl PartialEq for ConstraintFragment
Source§impl Serialize for ConstraintFragment
impl Serialize for ConstraintFragment
impl StructuralPartialEq for ConstraintFragment
Auto Trait Implementations§
impl Freeze for ConstraintFragment
impl RefUnwindSafe for ConstraintFragment
impl Send for ConstraintFragment
impl Sync for ConstraintFragment
impl Unpin for ConstraintFragment
impl UnsafeUnpin for ConstraintFragment
impl UnwindSafe for ConstraintFragment
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