pub struct KeyTriple { /* private fields */ }👎Deprecated since 0.9.0: KeyIdentity should be used instead.
Expand description
Should only be used internally to map KeyTriple to the new KeyIdentity for the on_disk_manager KeyInfoManager. Structure corresponds to a unique identifier of the key. It is used internally by the Key ID manager to refer to a key.
Implementations§
Source§impl KeyTriple
impl KeyTriple
Sourcepub fn new(
app_name: ApplicationName,
provider_id: ProviderId,
key_name: String,
) -> KeyTriple
👎Deprecated since 0.9.0: KeyIdentity should be used instead.
pub fn new( app_name: ApplicationName, provider_id: ProviderId, key_name: String, ) -> KeyTriple
Creates a new instance of KeyTriple.
Sourcepub fn belongs_to_provider(&self, provider_id: ProviderId) -> bool
👎Deprecated since 0.9.0: KeyIdentity should be used instead.
pub fn belongs_to_provider(&self, provider_id: ProviderId) -> bool
Checks if this key belongs to a specific provider.
Sourcepub fn provider_id(&self) -> &ProviderId
👎Deprecated since 0.9.0: KeyIdentity should be used instead.
pub fn provider_id(&self) -> &ProviderId
Get the provider id
Sourcepub fn key_name(&self) -> &str
👎Deprecated since 0.9.0: KeyIdentity should be used instead.
pub fn key_name(&self) -> &str
Get the key name
Sourcepub fn app_name(&self) -> &ApplicationName
👎Deprecated since 0.9.0: KeyIdentity should be used instead.
pub fn app_name(&self) -> &ApplicationName
Get the app name
Trait Implementations§
Source§impl TryFrom<KeyIdentity> for KeyTriple
impl TryFrom<KeyIdentity> for KeyTriple
impl Eq for KeyTriple
impl StructuralPartialEq for KeyTriple
Auto Trait Implementations§
impl Freeze for KeyTriple
impl RefUnwindSafe for KeyTriple
impl Send for KeyTriple
impl Sync for KeyTriple
impl Unpin for KeyTriple
impl UnwindSafe for KeyTriple
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.