#[non_exhaustive]pub struct InitializeEncryptionSpecMetadata {
pub request: Option<InitializeEncryptionSpecRequest>,
/* private fields */
}Available on crate feature
encryption-spec-service only.Expand description
Metadata for initializing 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.request: Option<InitializeEncryptionSpecRequest>Output only. The original request for initialization.
Implementations§
Source§impl InitializeEncryptionSpecMetadata
impl InitializeEncryptionSpecMetadata
pub fn new() -> Self
Sourcepub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<InitializeEncryptionSpecRequest>,
pub fn set_request<T>(self, v: T) -> Selfwhere
T: Into<InitializeEncryptionSpecRequest>,
Sourcepub fn set_or_clear_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<InitializeEncryptionSpecRequest>,
pub fn set_or_clear_request<T>(self, v: Option<T>) -> Selfwhere
T: Into<InitializeEncryptionSpecRequest>,
Sets or clears the value of request.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::InitializeEncryptionSpecRequest;
let x = InitializeEncryptionSpecMetadata::new().set_or_clear_request(Some(InitializeEncryptionSpecRequest::default()/* use setters */));
let x = InitializeEncryptionSpecMetadata::new().set_or_clear_request(None::<InitializeEncryptionSpecRequest>);Trait Implementations§
Source§impl Clone for InitializeEncryptionSpecMetadata
impl Clone for InitializeEncryptionSpecMetadata
Source§fn clone(&self) -> InitializeEncryptionSpecMetadata
fn clone(&self) -> InitializeEncryptionSpecMetadata
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 InitializeEncryptionSpecMetadata
impl Default for InitializeEncryptionSpecMetadata
Source§fn default() -> InitializeEncryptionSpecMetadata
fn default() -> InitializeEncryptionSpecMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for InitializeEncryptionSpecMetadata
impl PartialEq for InitializeEncryptionSpecMetadata
Source§fn eq(&self, other: &InitializeEncryptionSpecMetadata) -> bool
fn eq(&self, other: &InitializeEncryptionSpecMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InitializeEncryptionSpecMetadata
Auto Trait Implementations§
impl Freeze for InitializeEncryptionSpecMetadata
impl RefUnwindSafe for InitializeEncryptionSpecMetadata
impl Send for InitializeEncryptionSpecMetadata
impl Sync for InitializeEncryptionSpecMetadata
impl Unpin for InitializeEncryptionSpecMetadata
impl UnwindSafe for InitializeEncryptionSpecMetadata
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