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,
) -> Self
pub fn for_targeted_field_rule( field: &FieldSourceKey, target_type: &TypeSourceKey, rule: &RuleSourceKey, ) -> Self
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<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
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
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