#[non_exhaustive]pub struct KeyAccessJustificationsPolicy {
pub allowed_access_reasons: Vec<AccessReason>,
/* private fields */
}Expand description
A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason values for encrypt, decrypt, and sign operations on a CryptoKey.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.allowed_access_reasons: Vec<AccessReason>The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail.
Implementations§
Source§impl KeyAccessJustificationsPolicy
impl KeyAccessJustificationsPolicy
pub fn new() -> Self
Sourcepub fn set_allowed_access_reasons<T, V>(self, v: T) -> Self
pub fn set_allowed_access_reasons<T, V>(self, v: T) -> Self
Sets the value of allowed_access_reasons.
Trait Implementations§
Source§impl Clone for KeyAccessJustificationsPolicy
impl Clone for KeyAccessJustificationsPolicy
Source§fn clone(&self) -> KeyAccessJustificationsPolicy
fn clone(&self) -> KeyAccessJustificationsPolicy
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 Default for KeyAccessJustificationsPolicy
impl Default for KeyAccessJustificationsPolicy
Source§fn default() -> KeyAccessJustificationsPolicy
fn default() -> KeyAccessJustificationsPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for KeyAccessJustificationsPolicy
impl PartialEq for KeyAccessJustificationsPolicy
Source§fn eq(&self, other: &KeyAccessJustificationsPolicy) -> bool
fn eq(&self, other: &KeyAccessJustificationsPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyAccessJustificationsPolicy
Auto Trait Implementations§
impl Freeze for KeyAccessJustificationsPolicy
impl RefUnwindSafe for KeyAccessJustificationsPolicy
impl Send for KeyAccessJustificationsPolicy
impl Sync for KeyAccessJustificationsPolicy
impl Unpin for KeyAccessJustificationsPolicy
impl UnwindSafe for KeyAccessJustificationsPolicy
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