#[non_exhaustive]pub struct NodeGroupsScopedList {
pub node_groups: Vec<NodeGroup>,
pub warning: Option<Warning>,
/* private fields */
}Available on crate feature
node-groups 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.node_groups: Vec<NodeGroup>[Output Only] A list of node groups contained in this scope.
warning: Option<Warning>[Output Only] An informational warning that appears when the nodeGroup list is empty.
Implementations§
Source§impl NodeGroupsScopedList
impl NodeGroupsScopedList
pub fn new() -> Self
Sourcepub fn set_node_groups<T, V>(self, v: T) -> Self
pub fn set_node_groups<T, V>(self, v: T) -> Self
Sets the value of node_groups.
§Example
ⓘ
use google_cloud_compute_v1::model::NodeGroup;
let x = NodeGroupsScopedList::new()
.set_node_groups([
NodeGroup::default()/* use setters */,
NodeGroup::default()/* use (different) setters */,
]);Sourcepub fn set_warning<T>(self, v: T) -> Self
pub fn set_warning<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for NodeGroupsScopedList
impl Clone for NodeGroupsScopedList
Source§fn clone(&self) -> NodeGroupsScopedList
fn clone(&self) -> NodeGroupsScopedList
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 NodeGroupsScopedList
impl Debug for NodeGroupsScopedList
Source§impl Default for NodeGroupsScopedList
impl Default for NodeGroupsScopedList
Source§fn default() -> NodeGroupsScopedList
fn default() -> NodeGroupsScopedList
Returns the “default value” for a type. Read more
Source§impl Message for NodeGroupsScopedList
impl Message for NodeGroupsScopedList
Source§impl PartialEq for NodeGroupsScopedList
impl PartialEq for NodeGroupsScopedList
impl StructuralPartialEq for NodeGroupsScopedList
Auto Trait Implementations§
impl Freeze for NodeGroupsScopedList
impl RefUnwindSafe for NodeGroupsScopedList
impl Send for NodeGroupsScopedList
impl Sync for NodeGroupsScopedList
impl Unpin for NodeGroupsScopedList
impl UnwindSafe for NodeGroupsScopedList
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