pub enum IdentityRef {
Key(VerifyingKey),
Alias {
key: VerifyingKey,
alias: String,
},
}Expand description
Unified identity type - either a raw VerifyingKey or a VerifyingKey + alias
This is the fundamental identity concept in the system.
Variants§
Key(VerifyingKey)
Raw verifying key identity (always valid, no declaration needed)
Alias
Alias identity controlled by a specific key
Implementations§
Source§impl IdentityRef
impl IdentityRef
Sourcepub fn controlling_key(&self) -> VerifyingKey
pub fn controlling_key(&self) -> VerifyingKey
Get the controlling verifying key for this identity
Sourcepub fn is_controlled_by(&self, key: &VerifyingKey) -> bool
pub fn is_controlled_by(&self, key: &VerifyingKey) -> bool
Check if this identity is controlled by the given key
Sourcepub fn is_controlled_by_ml_dsa(&self, _key: &VerifyingKey) -> bool
pub fn is_controlled_by_ml_dsa(&self, _key: &VerifyingKey) -> bool
Check if this identity is controlled by the given ML-DSA key This is a compatibility method for the ML-DSA transition
Sourcepub fn fallback_display(&self) -> String
pub fn fallback_display(&self) -> String
Get a display string for this identity (used when no display name is set)
Trait Implementations§
Source§impl Clone for IdentityRef
impl Clone for IdentityRef
Source§fn clone(&self) -> IdentityRef
fn clone(&self) -> IdentityRef
Returns a duplicate of the value. Read more
1.0.0 · 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 IdentityRef
impl Debug for IdentityRef
Source§impl<'de> Deserialize<'de> for IdentityRef
impl<'de> Deserialize<'de> for IdentityRef
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 Hash for IdentityRef
impl Hash for IdentityRef
Source§impl Ord for IdentityRef
impl Ord for IdentityRef
Source§fn cmp(&self, other: &IdentityRef) -> Ordering
fn cmp(&self, other: &IdentityRef) -> Ordering
1.21.0 · 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 IdentityRef
impl PartialEq for IdentityRef
Source§impl PartialOrd for IdentityRef
impl PartialOrd for IdentityRef
Source§impl Serialize for IdentityRef
impl Serialize for IdentityRef
impl Eq for IdentityRef
impl StructuralPartialEq for IdentityRef
Auto Trait Implementations§
impl Freeze for IdentityRef
impl RefUnwindSafe for IdentityRef
impl Send for IdentityRef
impl Sync for IdentityRef
impl Unpin for IdentityRef
impl UnwindSafe for IdentityRef
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more