pub struct KeyIdentity { /* private fields */ }Expand description
This structure corresponds to a unique identifier of the key. It is used internally by the Key ID manager to refer to a key. Note: for equality and hashing, key identity structs with matching ApplicationIdentity and key_name are considered equal; ProviderIdentity is not considered when evaluating equality or the hash.
Implementations§
Source§impl KeyIdentity
impl KeyIdentity
Sourcepub fn new(
application: ApplicationIdentity,
provider: ProviderIdentity,
key_name: String,
) -> KeyIdentity
pub fn new( application: ApplicationIdentity, provider: ProviderIdentity, key_name: String, ) -> KeyIdentity
Creates a new instance of KeyIdentity.
Sourcepub fn belongs_to_provider(&self, provider_identity: &ProviderIdentity) -> bool
pub fn belongs_to_provider(&self, provider_identity: &ProviderIdentity) -> bool
Checks if this key belongs to a specific provider.
Sourcepub fn application(&self) -> &ApplicationIdentity
pub fn application(&self) -> &ApplicationIdentity
Get the application identity of the key
Sourcepub fn provider(&self) -> &ProviderIdentity
pub fn provider(&self) -> &ProviderIdentity
Get the provider identity of the key
Trait Implementations§
Source§impl Clone for KeyIdentity
impl Clone for KeyIdentity
Source§fn clone(&self) -> KeyIdentity
fn clone(&self) -> KeyIdentity
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 KeyIdentity
impl Debug for KeyIdentity
Source§impl Display for KeyIdentity
impl Display for KeyIdentity
Source§impl Hash for KeyIdentity
impl Hash for KeyIdentity
Source§impl PartialEq for KeyIdentity
impl PartialEq for KeyIdentity
Source§impl TryFrom<(KeyTriple, ProviderIdentity, Auth)> for KeyIdentity
impl TryFrom<(KeyTriple, ProviderIdentity, Auth)> for KeyIdentity
Source§impl TryFrom<KeyIdentity> for KeyTriple
impl TryFrom<KeyIdentity> for KeyTriple
impl Eq for KeyIdentity
Auto Trait Implementations§
impl Freeze for KeyIdentity
impl RefUnwindSafe for KeyIdentity
impl Send for KeyIdentity
impl Sync for KeyIdentity
impl Unpin for KeyIdentity
impl UnwindSafe for KeyIdentity
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> 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§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.