#[non_exhaustive]pub struct WorkloadIdentityConfig {
pub identity: Option<String>,
pub identity_certificate_enabled: Option<bool>,
/* private fields */
}Available on crate features
instance-templates or instances or machine-images or region-instance-templates or region-instances only.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<String>§identity_certificate_enabled: Option<bool>Implementations§
Source§impl WorkloadIdentityConfig
impl WorkloadIdentityConfig
pub fn new() -> Self
Sourcepub fn set_identity<T>(self, v: T) -> Self
pub fn set_identity<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_identity<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_identity<T>(self, v: Option<T>) -> Self
Sourcepub fn set_identity_certificate_enabled<T>(self, v: T) -> Self
pub fn set_identity_certificate_enabled<T>(self, v: T) -> Self
Sets the value of identity_certificate_enabled.
§Example
ⓘ
let x = WorkloadIdentityConfig::new().set_identity_certificate_enabled(true);Sourcepub fn set_or_clear_identity_certificate_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_identity_certificate_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of identity_certificate_enabled.
§Example
ⓘ
let x = WorkloadIdentityConfig::new().set_or_clear_identity_certificate_enabled(Some(false));
let x = WorkloadIdentityConfig::new().set_or_clear_identity_certificate_enabled(None::<bool>);Trait Implementations§
Source§impl Clone for WorkloadIdentityConfig
impl Clone for WorkloadIdentityConfig
Source§fn clone(&self) -> WorkloadIdentityConfig
fn clone(&self) -> WorkloadIdentityConfig
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 WorkloadIdentityConfig
impl Debug for WorkloadIdentityConfig
Source§impl Default for WorkloadIdentityConfig
impl Default for WorkloadIdentityConfig
Source§fn default() -> WorkloadIdentityConfig
fn default() -> WorkloadIdentityConfig
Returns the “default value” for a type. Read more
Source§impl Message for WorkloadIdentityConfig
impl Message for WorkloadIdentityConfig
Source§impl PartialEq for WorkloadIdentityConfig
impl PartialEq for WorkloadIdentityConfig
impl StructuralPartialEq for WorkloadIdentityConfig
Auto Trait Implementations§
impl Freeze for WorkloadIdentityConfig
impl RefUnwindSafe for WorkloadIdentityConfig
impl Send for WorkloadIdentityConfig
impl Sync for WorkloadIdentityConfig
impl Unpin for WorkloadIdentityConfig
impl UnsafeUnpin for WorkloadIdentityConfig
impl UnwindSafe for WorkloadIdentityConfig
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