#[non_exhaustive]pub struct UpdateNodeRequest {
pub update_mask: Option<FieldMask>,
pub node: Option<Node>,
/* private fields */
}Expand description
Request for UpdateNode.
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.update_mask: Option<FieldMask>Required. Mask of fields from [Node][Tpu.Node] to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips].
node: Option<Node>Required. The node. Only fields specified in update_mask are updated.
Implementations§
Source§impl UpdateNodeRequest
impl UpdateNodeRequest
pub fn new() -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateNodeRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateNodeRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateNodeRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_or_clear_node<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_node<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for UpdateNodeRequest
impl Clone for UpdateNodeRequest
Source§fn clone(&self) -> UpdateNodeRequest
fn clone(&self) -> UpdateNodeRequest
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 UpdateNodeRequest
impl Debug for UpdateNodeRequest
Source§impl Default for UpdateNodeRequest
impl Default for UpdateNodeRequest
Source§fn default() -> UpdateNodeRequest
fn default() -> UpdateNodeRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateNodeRequest
impl Message for UpdateNodeRequest
Source§impl PartialEq for UpdateNodeRequest
impl PartialEq for UpdateNodeRequest
impl StructuralPartialEq for UpdateNodeRequest
Auto Trait Implementations§
impl Freeze for UpdateNodeRequest
impl RefUnwindSafe for UpdateNodeRequest
impl Send for UpdateNodeRequest
impl Sync for UpdateNodeRequest
impl Unpin for UpdateNodeRequest
impl UnsafeUnpin for UpdateNodeRequest
impl UnwindSafe for UpdateNodeRequest
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