#[non_exhaustive]pub struct ExternalProtectionLevelOptions {
pub external_key_uri: String,
pub ekm_connection_key_path: String,
/* private fields */
}Expand description
ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.
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.external_key_uri: StringThe URI for an external resource that this CryptoKeyVersion represents.
ekm_connection_key_path: StringThe path to the external key material on the EKM when using EkmConnection e.g., “v0/my/key”. Set this field instead of external_key_uri when using an EkmConnection.
Implementations§
Source§impl ExternalProtectionLevelOptions
impl ExternalProtectionLevelOptions
pub fn new() -> Self
Sourcepub fn set_external_key_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_external_key_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of external_key_uri.
Sourcepub fn set_ekm_connection_key_path<T: Into<String>>(self, v: T) -> Self
pub fn set_ekm_connection_key_path<T: Into<String>>(self, v: T) -> Self
Sets the value of ekm_connection_key_path.
Trait Implementations§
Source§impl Clone for ExternalProtectionLevelOptions
impl Clone for ExternalProtectionLevelOptions
Source§fn clone(&self) -> ExternalProtectionLevelOptions
fn clone(&self) -> ExternalProtectionLevelOptions
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 ExternalProtectionLevelOptions
impl Default for ExternalProtectionLevelOptions
Source§fn default() -> ExternalProtectionLevelOptions
fn default() -> ExternalProtectionLevelOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExternalProtectionLevelOptions
impl PartialEq for ExternalProtectionLevelOptions
Source§fn eq(&self, other: &ExternalProtectionLevelOptions) -> bool
fn eq(&self, other: &ExternalProtectionLevelOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExternalProtectionLevelOptions
Auto Trait Implementations§
impl Freeze for ExternalProtectionLevelOptions
impl RefUnwindSafe for ExternalProtectionLevelOptions
impl Send for ExternalProtectionLevelOptions
impl Sync for ExternalProtectionLevelOptions
impl Unpin for ExternalProtectionLevelOptions
impl UnwindSafe for ExternalProtectionLevelOptions
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