#[non_exhaustive]pub struct DataplaneV2Config {
pub scalability_mode: Option<ScalabilityMode>,
/* private fields */
}Expand description
DataplaneV2Config is the configuration for DPv2.
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.scalability_mode: Option<ScalabilityMode>Optional. Scalability mode for the cluster.
Implementations§
Source§impl DataplaneV2Config
impl DataplaneV2Config
Sourcepub fn set_scalability_mode<T>(self, v: T) -> Selfwhere
T: Into<ScalabilityMode>,
pub fn set_scalability_mode<T>(self, v: T) -> Selfwhere
T: Into<ScalabilityMode>,
Sets the value of scalability_mode.
§Example
ⓘ
use google_cloud_container_v1::model::dataplane_v_2_config::ScalabilityMode;
let x0 = DataplaneV2Config::new().set_scalability_mode(ScalabilityMode::Disabled);
let x1 = DataplaneV2Config::new().set_scalability_mode(ScalabilityMode::ScaleOptimized);Sourcepub fn set_or_clear_scalability_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<ScalabilityMode>,
pub fn set_or_clear_scalability_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<ScalabilityMode>,
Sets or clears the value of scalability_mode.
§Example
ⓘ
use google_cloud_container_v1::model::dataplane_v_2_config::ScalabilityMode;
let x0 = DataplaneV2Config::new().set_or_clear_scalability_mode(Some(ScalabilityMode::Disabled));
let x1 = DataplaneV2Config::new().set_or_clear_scalability_mode(Some(ScalabilityMode::ScaleOptimized));
let x_none = DataplaneV2Config::new().set_or_clear_scalability_mode(None::<ScalabilityMode>);Trait Implementations§
Source§impl Clone for DataplaneV2Config
impl Clone for DataplaneV2Config
Source§fn clone(&self) -> DataplaneV2Config
fn clone(&self) -> DataplaneV2Config
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 DataplaneV2Config
impl Debug for DataplaneV2Config
Source§impl Default for DataplaneV2Config
impl Default for DataplaneV2Config
Source§fn default() -> DataplaneV2Config
fn default() -> DataplaneV2Config
Returns the “default value” for a type. Read more
Source§impl Message for DataplaneV2Config
impl Message for DataplaneV2Config
Source§impl PartialEq for DataplaneV2Config
impl PartialEq for DataplaneV2Config
Source§fn eq(&self, other: &DataplaneV2Config) -> bool
fn eq(&self, other: &DataplaneV2Config) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DataplaneV2Config
Auto Trait Implementations§
impl Freeze for DataplaneV2Config
impl RefUnwindSafe for DataplaneV2Config
impl Send for DataplaneV2Config
impl Sync for DataplaneV2Config
impl Unpin for DataplaneV2Config
impl UnsafeUnpin for DataplaneV2Config
impl UnwindSafe for DataplaneV2Config
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