pub struct DntSecretRefPolicy { /* private fields */ }Expand description
Mapping policy from DNT key IDs to security secret references.
Implementations§
Source§impl DntSecretRefPolicy
impl DntSecretRefPolicy
Sourcepub fn new(prefix: impl Into<String>) -> Self
pub fn new(prefix: impl Into<String>) -> Self
Creates a mapping policy with an explicit non-secret reference prefix.
Sourcepub fn provider_default() -> Self
pub fn provider_default() -> Self
Returns the default provider-owned DNT key reference policy.
Sourcepub fn reference_for(
&self,
key_id: &KeyId,
context: &DntContext,
) -> SecuritySecretRef
pub fn reference_for( &self, key_id: &KeyId, context: &DntContext, ) -> SecuritySecretRef
Maps a contextual key ID to an opaque security secret reference.
Trait Implementations§
Source§impl Clone for DntSecretRefPolicy
impl Clone for DntSecretRefPolicy
Source§fn clone(&self) -> DntSecretRefPolicy
fn clone(&self) -> DntSecretRefPolicy
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 DntSecretRefPolicy
impl Debug for DntSecretRefPolicy
Source§impl Default for DntSecretRefPolicy
impl Default for DntSecretRefPolicy
impl Eq for DntSecretRefPolicy
Source§impl PartialEq for DntSecretRefPolicy
impl PartialEq for DntSecretRefPolicy
impl StructuralPartialEq for DntSecretRefPolicy
Auto Trait Implementations§
impl Freeze for DntSecretRefPolicy
impl RefUnwindSafe for DntSecretRefPolicy
impl Send for DntSecretRefPolicy
impl Sync for DntSecretRefPolicy
impl Unpin for DntSecretRefPolicy
impl UnsafeUnpin for DntSecretRefPolicy
impl UnwindSafe for DntSecretRefPolicy
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