pub struct ConstraintFragment { /* private fields */ }Expand description
One source constraint declaration.
Implementations§
Source§impl ConstraintFragment
impl ConstraintFragment
Sourcepub fn check(
name: SchemaName,
expression: SourceCheckExpr,
) -> ConstraintFragment
pub fn check( name: SchemaName, expression: SourceCheckExpr, ) -> ConstraintFragment
Construct one general source check.
Sourcepub fn targeted_rule(rule: TargetedRuleFragment) -> ConstraintFragment
pub fn targeted_rule(rule: TargetedRuleFragment) -> ConstraintFragment
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<ConstraintFragment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConstraintFragment, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
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.