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