#[non_exhaustive]pub struct UpdateInstanceRequest {
pub instance: Option<Instance>,
pub update_mask: Option<FieldMask>,
pub request_id: String,
/* private fields */
}Expand description
Request for updating a notebook instance.
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.instance: Option<Instance>Required. A representation of an instance.
update_mask: Option<FieldMask>Required. Mask used to update an instance
request_id: StringOptional. Idempotent request UUID.
Implementations§
Source§impl UpdateInstanceRequest
impl UpdateInstanceRequest
pub fn new() -> Self
Sourcepub fn set_instance<T>(self, v: T) -> Self
pub fn set_instance<T>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance.
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.
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.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Trait Implementations§
Source§impl Clone for UpdateInstanceRequest
impl Clone for UpdateInstanceRequest
Source§fn clone(&self) -> UpdateInstanceRequest
fn clone(&self) -> UpdateInstanceRequest
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 UpdateInstanceRequest
impl Debug for UpdateInstanceRequest
Source§impl Default for UpdateInstanceRequest
impl Default for UpdateInstanceRequest
Source§fn default() -> UpdateInstanceRequest
fn default() -> UpdateInstanceRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateInstanceRequest
impl Message for UpdateInstanceRequest
Source§impl PartialEq for UpdateInstanceRequest
impl PartialEq for UpdateInstanceRequest
impl StructuralPartialEq for UpdateInstanceRequest
Auto Trait Implementations§
impl Freeze for UpdateInstanceRequest
impl RefUnwindSafe for UpdateInstanceRequest
impl Send for UpdateInstanceRequest
impl Sync for UpdateInstanceRequest
impl Unpin for UpdateInstanceRequest
impl UnwindSafe for UpdateInstanceRequest
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