#[non_exhaustive]pub struct UpdateClusterRequest {
pub update_mask: Option<FieldMask>,
pub cluster: Option<Cluster>,
pub request_id: String,
/* private fields */
}
Expand description
Request for [UpdateCluster][CloudRedis.UpdateCluster].
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 to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Cluster:
size_gb
replica_count
cluster: Option<Cluster>
Required. Update description. Only fields specified in update_mask are updated.
request_id: String
Idempotent request UUID.
Implementations§
Source§impl UpdateClusterRequest
impl UpdateClusterRequest
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.
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_cluster<T>(self, v: T) -> Self
pub fn set_cluster<T>(self, v: T) -> Self
Sets the value of cluster.
Sourcepub fn set_or_clear_cluster<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cluster<T>(self, v: Option<T>) -> Self
Sets or clears the value of cluster.
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 UpdateClusterRequest
impl Clone for UpdateClusterRequest
Source§fn clone(&self) -> UpdateClusterRequest
fn clone(&self) -> UpdateClusterRequest
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 UpdateClusterRequest
impl Debug for UpdateClusterRequest
Source§impl Default for UpdateClusterRequest
impl Default for UpdateClusterRequest
Source§fn default() -> UpdateClusterRequest
fn default() -> UpdateClusterRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateClusterRequest
impl Message for UpdateClusterRequest
Source§impl PartialEq for UpdateClusterRequest
impl PartialEq for UpdateClusterRequest
impl StructuralPartialEq for UpdateClusterRequest
Auto Trait Implementations§
impl Freeze for UpdateClusterRequest
impl RefUnwindSafe for UpdateClusterRequest
impl Send for UpdateClusterRequest
impl Sync for UpdateClusterRequest
impl Unpin for UpdateClusterRequest
impl UnwindSafe for UpdateClusterRequest
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