#[non_exhaustive]pub struct InitializeEncryptionSpecRequest {
pub encryption_spec: Option<EncryptionSpec>,
/* private fields */
}Available on crate feature
encryption-spec-service only.Expand description
The request to initialize a location-level encryption specification.
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.encryption_spec: Option<EncryptionSpec>Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.
Implementations§
Source§impl InitializeEncryptionSpecRequest
impl InitializeEncryptionSpecRequest
pub fn new() -> Self
Sourcepub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
Sets the value of encryption_spec.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::EncryptionSpec;
let x = InitializeEncryptionSpecRequest::new().set_encryption_spec(EncryptionSpec::default()/* use setters */);Sourcepub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
Sets or clears the value of encryption_spec.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::EncryptionSpec;
let x = InitializeEncryptionSpecRequest::new().set_or_clear_encryption_spec(Some(EncryptionSpec::default()/* use setters */));
let x = InitializeEncryptionSpecRequest::new().set_or_clear_encryption_spec(None::<EncryptionSpec>);Trait Implementations§
Source§impl Clone for InitializeEncryptionSpecRequest
impl Clone for InitializeEncryptionSpecRequest
Source§fn clone(&self) -> InitializeEncryptionSpecRequest
fn clone(&self) -> InitializeEncryptionSpecRequest
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 InitializeEncryptionSpecRequest
impl Default for InitializeEncryptionSpecRequest
Source§fn default() -> InitializeEncryptionSpecRequest
fn default() -> InitializeEncryptionSpecRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for InitializeEncryptionSpecRequest
impl PartialEq for InitializeEncryptionSpecRequest
Source§fn eq(&self, other: &InitializeEncryptionSpecRequest) -> bool
fn eq(&self, other: &InitializeEncryptionSpecRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InitializeEncryptionSpecRequest
Auto Trait Implementations§
impl Freeze for InitializeEncryptionSpecRequest
impl RefUnwindSafe for InitializeEncryptionSpecRequest
impl Send for InitializeEncryptionSpecRequest
impl Sync for InitializeEncryptionSpecRequest
impl Unpin for InitializeEncryptionSpecRequest
impl UnwindSafe for InitializeEncryptionSpecRequest
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