#[non_exhaustive]pub struct NodeCreationConfig {
pub node_creation_mode: Mode,
/* private fields */
}Expand description
NodeCreationConfig defines the settings of node creation mode.
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.node_creation_mode: ModeThe mode of node creation.
Implementations§
Source§impl NodeCreationConfig
impl NodeCreationConfig
Sourcepub fn set_node_creation_mode<T: Into<Mode>>(self, v: T) -> Self
pub fn set_node_creation_mode<T: Into<Mode>>(self, v: T) -> Self
Sets the value of node_creation_mode.
§Example
ⓘ
use google_cloud_container_v1::model::node_creation_config::Mode;
let x0 = NodeCreationConfig::new().set_node_creation_mode(Mode::ViaKubelet);
let x1 = NodeCreationConfig::new().set_node_creation_mode(Mode::ViaControlPlane);Trait Implementations§
Source§impl Clone for NodeCreationConfig
impl Clone for NodeCreationConfig
Source§fn clone(&self) -> NodeCreationConfig
fn clone(&self) -> NodeCreationConfig
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 NodeCreationConfig
impl Debug for NodeCreationConfig
Source§impl Default for NodeCreationConfig
impl Default for NodeCreationConfig
Source§fn default() -> NodeCreationConfig
fn default() -> NodeCreationConfig
Returns the “default value” for a type. Read more
Source§impl Message for NodeCreationConfig
impl Message for NodeCreationConfig
Source§impl PartialEq for NodeCreationConfig
impl PartialEq for NodeCreationConfig
Source§fn eq(&self, other: &NodeCreationConfig) -> bool
fn eq(&self, other: &NodeCreationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeCreationConfig
Auto Trait Implementations§
impl Freeze for NodeCreationConfig
impl RefUnwindSafe for NodeCreationConfig
impl Send for NodeCreationConfig
impl Sync for NodeCreationConfig
impl Unpin for NodeCreationConfig
impl UnsafeUnpin for NodeCreationConfig
impl UnwindSafe for NodeCreationConfig
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