pub struct ConstraintFragment { /* private fields */ }Expand description
One accepted-check declaration in source-key form.
Implementations§
Source§impl ConstraintFragment
impl ConstraintFragment
Sourcepub const fn new(
source_key: ConstraintSourceKey,
name: SchemaName,
expression: SourceCheckExpr,
) -> ConstraintFragment
pub const fn new( source_key: ConstraintSourceKey, name: SchemaName, expression: SourceCheckExpr, ) -> ConstraintFragment
Construct one source constraint.
Sourcepub const fn source_key(&self) -> &ConstraintSourceKey
pub const fn source_key(&self) -> &ConstraintSourceKey
Borrow the immutable source key.
Sourcepub const fn name(&self) -> &SchemaName
pub const fn name(&self) -> &SchemaName
Borrow the editable constraint name.
Sourcepub const fn expression(&self) -> &SourceCheckExpr
pub const fn expression(&self) -> &SourceCheckExpr
Borrow the source expression.
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.