#[non_exhaustive]pub struct UpdateInstanceRequest {
pub instance: Option<Instance>,
pub field_mask: Option<FieldMask>,
/* private fields */
}
Expand description
The request for UpdateInstance.
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. The instance to update, which must always include the instance name. Otherwise, only fields mentioned in field_mask need be included.
field_mask: Option<FieldMask>
Required. A mask specifying which fields in Instance should be updated. The field mask must always be specified; this prevents any future fields in Instance from being erased accidentally by clients that do not know about them.
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_field_mask<T>(self, v: T) -> Self
pub fn set_field_mask<T>(self, v: T) -> Self
Sets the value of field_mask.
Sourcepub fn set_or_clear_field_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_field_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of field_mask.
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