#[non_exhaustive]pub struct TaintConfig {
pub architecture_taint_behavior: Option<ArchitectureTaintBehavior>,
/* private fields */
}Expand description
TaintConfig contains the configuration for the taints of the node pool.
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.architecture_taint_behavior: Option<ArchitectureTaintBehavior>Optional. Controls architecture tainting behavior.
Implementations§
Source§impl TaintConfig
impl TaintConfig
Sourcepub fn set_architecture_taint_behavior<T>(self, v: T) -> Selfwhere
T: Into<ArchitectureTaintBehavior>,
pub fn set_architecture_taint_behavior<T>(self, v: T) -> Selfwhere
T: Into<ArchitectureTaintBehavior>,
Sets the value of architecture_taint_behavior.
§Example
ⓘ
use google_cloud_container_v1::model::taint_config::ArchitectureTaintBehavior;
let x0 = TaintConfig::new().set_architecture_taint_behavior(ArchitectureTaintBehavior::None);
let x1 = TaintConfig::new().set_architecture_taint_behavior(ArchitectureTaintBehavior::Arm);Sourcepub fn set_or_clear_architecture_taint_behavior<T>(self, v: Option<T>) -> Selfwhere
T: Into<ArchitectureTaintBehavior>,
pub fn set_or_clear_architecture_taint_behavior<T>(self, v: Option<T>) -> Selfwhere
T: Into<ArchitectureTaintBehavior>,
Sets or clears the value of architecture_taint_behavior.
§Example
ⓘ
use google_cloud_container_v1::model::taint_config::ArchitectureTaintBehavior;
let x0 = TaintConfig::new().set_or_clear_architecture_taint_behavior(Some(ArchitectureTaintBehavior::None));
let x1 = TaintConfig::new().set_or_clear_architecture_taint_behavior(Some(ArchitectureTaintBehavior::Arm));
let x_none = TaintConfig::new().set_or_clear_architecture_taint_behavior(None::<ArchitectureTaintBehavior>);Trait Implementations§
Source§impl Clone for TaintConfig
impl Clone for TaintConfig
Source§fn clone(&self) -> TaintConfig
fn clone(&self) -> TaintConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaintConfig
impl Debug for TaintConfig
Source§impl Default for TaintConfig
impl Default for TaintConfig
Source§fn default() -> TaintConfig
fn default() -> TaintConfig
Returns the “default value” for a type. Read more
Source§impl Message for TaintConfig
impl Message for TaintConfig
Source§impl PartialEq for TaintConfig
impl PartialEq for TaintConfig
Source§fn eq(&self, other: &TaintConfig) -> bool
fn eq(&self, other: &TaintConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TaintConfig
Auto Trait Implementations§
impl Freeze for TaintConfig
impl RefUnwindSafe for TaintConfig
impl Send for TaintConfig
impl Sync for TaintConfig
impl Unpin for TaintConfig
impl UnsafeUnpin for TaintConfig
impl UnwindSafe for TaintConfig
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