#[non_exhaustive]pub struct GenerateServiceIdentityResponse {
pub identity: Option<ServiceIdentity>,
/* private fields */
}Expand description
Response for GenerateServiceIdentity.
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.identity: Option<ServiceIdentity>ServiceIdentity that was created or retrieved.
Implementations§
Source§impl GenerateServiceIdentityResponse
impl GenerateServiceIdentityResponse
pub fn new() -> Self
Sourcepub fn set_identity<T>(self, v: T) -> Selfwhere
T: Into<ServiceIdentity>,
pub fn set_identity<T>(self, v: T) -> Selfwhere
T: Into<ServiceIdentity>,
Sourcepub fn set_or_clear_identity<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServiceIdentity>,
pub fn set_or_clear_identity<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServiceIdentity>,
Sets or clears the value of identity.
§Example
ⓘ
use google_cloud_tpu_v2::model::ServiceIdentity;
let x = GenerateServiceIdentityResponse::new().set_or_clear_identity(Some(ServiceIdentity::default()/* use setters */));
let x = GenerateServiceIdentityResponse::new().set_or_clear_identity(None::<ServiceIdentity>);Trait Implementations§
Source§impl Clone for GenerateServiceIdentityResponse
impl Clone for GenerateServiceIdentityResponse
Source§fn clone(&self) -> GenerateServiceIdentityResponse
fn clone(&self) -> GenerateServiceIdentityResponse
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 GenerateServiceIdentityResponse
impl Default for GenerateServiceIdentityResponse
Source§fn default() -> GenerateServiceIdentityResponse
fn default() -> GenerateServiceIdentityResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for GenerateServiceIdentityResponse
impl PartialEq for GenerateServiceIdentityResponse
Source§fn eq(&self, other: &GenerateServiceIdentityResponse) -> bool
fn eq(&self, other: &GenerateServiceIdentityResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenerateServiceIdentityResponse
Auto Trait Implementations§
impl Freeze for GenerateServiceIdentityResponse
impl RefUnwindSafe for GenerateServiceIdentityResponse
impl Send for GenerateServiceIdentityResponse
impl Sync for GenerateServiceIdentityResponse
impl Unpin for GenerateServiceIdentityResponse
impl UnsafeUnpin for GenerateServiceIdentityResponse
impl UnwindSafe for GenerateServiceIdentityResponse
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