#[non_exhaustive]pub struct UpdateInfo {
pub target_shard_count: Option<i32>,
pub target_replica_count: Option<i32>,
/* private fields */
}Expand description
Represents information about an updating cluster.
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.target_shard_count: Option<i32>Target number of shards for redis cluster
target_replica_count: Option<i32>Target number of replica nodes per shard.
Implementations§
Source§impl UpdateInfo
impl UpdateInfo
pub fn new() -> Self
Sourcepub fn set_target_shard_count<T>(self, v: T) -> Self
pub fn set_target_shard_count<T>(self, v: T) -> Self
Sets the value of target_shard_count.
Sourcepub fn set_or_clear_target_shard_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_target_shard_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of target_shard_count.
Sourcepub fn set_target_replica_count<T>(self, v: T) -> Self
pub fn set_target_replica_count<T>(self, v: T) -> Self
Sets the value of target_replica_count.
Sourcepub fn set_or_clear_target_replica_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_target_replica_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of target_replica_count.
Trait Implementations§
Source§impl Clone for UpdateInfo
impl Clone for UpdateInfo
Source§fn clone(&self) -> UpdateInfo
fn clone(&self) -> UpdateInfo
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 UpdateInfo
impl Debug for UpdateInfo
Source§impl Default for UpdateInfo
impl Default for UpdateInfo
Source§fn default() -> UpdateInfo
fn default() -> UpdateInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateInfo
impl PartialEq for UpdateInfo
impl StructuralPartialEq for UpdateInfo
Auto Trait Implementations§
impl Freeze for UpdateInfo
impl RefUnwindSafe for UpdateInfo
impl Send for UpdateInfo
impl Sync for UpdateInfo
impl Unpin for UpdateInfo
impl UnwindSafe for UpdateInfo
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