#[non_exhaustive]pub struct UpdateInstancePartitionRequest {
pub instance_partition: Option<InstancePartition>,
pub field_mask: Option<FieldMask>,
/* private fields */
}
Expand description
The request for UpdateInstancePartition.
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_partition: Option<InstancePartition>
Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in field_mask need be included.
field_mask: Option<FieldMask>
Required. A mask specifying which fields in InstancePartition should be updated. The field mask must always be specified; this prevents any future fields in InstancePartition from being erased accidentally by clients that do not know about them.
Implementations§
Source§impl UpdateInstancePartitionRequest
impl UpdateInstancePartitionRequest
pub fn new() -> Self
Sourcepub fn set_instance_partition<T>(self, v: T) -> Selfwhere
T: Into<InstancePartition>,
pub fn set_instance_partition<T>(self, v: T) -> Selfwhere
T: Into<InstancePartition>,
Sets the value of instance_partition.
Sourcepub fn set_or_clear_instance_partition<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstancePartition>,
pub fn set_or_clear_instance_partition<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstancePartition>,
Sets or clears the value of instance_partition.
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 UpdateInstancePartitionRequest
impl Clone for UpdateInstancePartitionRequest
Source§fn clone(&self) -> UpdateInstancePartitionRequest
fn clone(&self) -> UpdateInstancePartitionRequest
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 Default for UpdateInstancePartitionRequest
impl Default for UpdateInstancePartitionRequest
Source§fn default() -> UpdateInstancePartitionRequest
fn default() -> UpdateInstancePartitionRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateInstancePartitionRequest
impl PartialEq for UpdateInstancePartitionRequest
Source§fn eq(&self, other: &UpdateInstancePartitionRequest) -> bool
fn eq(&self, other: &UpdateInstancePartitionRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateInstancePartitionRequest
Auto Trait Implementations§
impl Freeze for UpdateInstancePartitionRequest
impl RefUnwindSafe for UpdateInstancePartitionRequest
impl Send for UpdateInstancePartitionRequest
impl Sync for UpdateInstancePartitionRequest
impl Unpin for UpdateInstancePartitionRequest
impl UnwindSafe for UpdateInstancePartitionRequest
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