#[non_exhaustive]pub struct LocationMetadata {
pub hsm_available: bool,
pub ekm_available: bool,
pub hsm_single_tenant_available: bool,
/* private fields */
}Expand description
Cloud KMS metadata for the given google.cloud.location.Location.
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.hsm_available: boolIndicates whether CryptoKeys with protection_level HSM can be created in this location.
ekm_available: boolIndicates whether CryptoKeys with protection_level EXTERNAL can be created in this location.
hsm_single_tenant_available: boolIndicates whether CryptoKeys with protection_level HSM_SINGLE_TENANT can be created in this location.
Implementations§
Source§impl LocationMetadata
impl LocationMetadata
pub fn new() -> Self
Sourcepub fn set_hsm_available<T: Into<bool>>(self, v: T) -> Self
pub fn set_hsm_available<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_ekm_available<T: Into<bool>>(self, v: T) -> Self
pub fn set_ekm_available<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_hsm_single_tenant_available<T: Into<bool>>(self, v: T) -> Self
pub fn set_hsm_single_tenant_available<T: Into<bool>>(self, v: T) -> Self
Sets the value of hsm_single_tenant_available.
§Example
ⓘ
let x = LocationMetadata::new().set_hsm_single_tenant_available(true);Trait Implementations§
Source§impl Clone for LocationMetadata
impl Clone for LocationMetadata
Source§fn clone(&self) -> LocationMetadata
fn clone(&self) -> LocationMetadata
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 LocationMetadata
impl Debug for LocationMetadata
Source§impl Default for LocationMetadata
impl Default for LocationMetadata
Source§fn default() -> LocationMetadata
fn default() -> LocationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for LocationMetadata
impl Message for LocationMetadata
Source§impl PartialEq for LocationMetadata
impl PartialEq for LocationMetadata
impl StructuralPartialEq for LocationMetadata
Auto Trait Implementations§
impl Freeze for LocationMetadata
impl RefUnwindSafe for LocationMetadata
impl Send for LocationMetadata
impl Sync for LocationMetadata
impl Unpin for LocationMetadata
impl UnsafeUnpin for LocationMetadata
impl UnwindSafe for LocationMetadata
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