pub struct ConstraintSourceKey(/* private fields */);Expand description
Typed proposal key derived from one current ConstraintSourceKey name.
Implementations§
Source§impl ConstraintSourceKey
impl ConstraintSourceKey
Sourcepub fn for_targeted_field_rule(
field: &FieldSourceKey,
target_type: &TypeSourceKey,
rule: &RuleSourceKey,
) -> ConstraintSourceKey
pub fn for_targeted_field_rule( field: &FieldSourceKey, target_type: &TypeSourceKey, rule: &RuleSourceKey, ) -> ConstraintSourceKey
Derive one targeted-rule proposal key under a persisted root.
The domain-separated digest keeps the result within the frozen source key bound even when every authored identity uses its maximum length.
Trait Implementations§
Source§impl CandidType for ConstraintSourceKey
impl CandidType for ConstraintSourceKey
Source§impl Clone for ConstraintSourceKey
impl Clone for ConstraintSourceKey
Source§fn clone(&self) -> ConstraintSourceKey
fn clone(&self) -> ConstraintSourceKey
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 ConstraintSourceKey
impl Debug for ConstraintSourceKey
Source§impl<'de> Deserialize<'de> for ConstraintSourceKey
impl<'de> Deserialize<'de> for ConstraintSourceKey
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ConstraintSourceKey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ConstraintSourceKey, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConstraintSourceKey
impl Display for ConstraintSourceKey
impl Eq for ConstraintSourceKey
Source§impl Hash for ConstraintSourceKey
impl Hash for ConstraintSourceKey
Source§impl Ord for ConstraintSourceKey
impl Ord for ConstraintSourceKey
Source§fn cmp(&self, other: &ConstraintSourceKey) -> Ordering
fn cmp(&self, other: &ConstraintSourceKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConstraintSourceKey
impl PartialEq for ConstraintSourceKey
Source§impl PartialOrd for ConstraintSourceKey
impl PartialOrd for ConstraintSourceKey
Source§impl Serialize for ConstraintSourceKey
impl Serialize for ConstraintSourceKey
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 ConstraintSourceKey
Auto Trait Implementations§
impl Freeze for ConstraintSourceKey
impl RefUnwindSafe for ConstraintSourceKey
impl Send for ConstraintSourceKey
impl Sync for ConstraintSourceKey
impl Unpin for ConstraintSourceKey
impl UnsafeUnpin for ConstraintSourceKey
impl UnwindSafe for ConstraintSourceKey
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CustomError for T
impl<T> CustomError for T
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.