pub struct ReconfigurationTarget {
pub size: String,
pub replication_factor: u32,
pub availability_zones: Vec<String>,
pub logging: ReplicaLogging,
}Expand description
The full config shape a reconfiguration is moving the cluster to, so a combined size + replication-factor + availability-zone change is one record.
Fields§
§size: String§replication_factor: u32§availability_zones: Vec<String>§logging: ReplicaLoggingTrait Implementations§
Source§impl Arbitrary for ReconfigurationTarget
impl Arbitrary for ReconfigurationTarget
Source§type Parameters = (<String as Arbitrary>::Parameters, <u32 as Arbitrary>::Parameters, <Vec<String> as Arbitrary>::Parameters, <ReplicaLogging as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <u32 as Arbitrary>::Parameters, <Vec<String> as Arbitrary>::Parameters, <ReplicaLogging as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<String as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy, <Vec<String> as Arbitrary>::Strategy, <ReplicaLogging as Arbitrary>::Strategy), fn((String, u32, Vec<String>, ReplicaLogging)) -> ReconfigurationTarget>
type Strategy = Map<(<String as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy, <Vec<String> as Arbitrary>::Strategy, <ReplicaLogging as Arbitrary>::Strategy), fn((String, u32, Vec<String>, ReplicaLogging)) -> ReconfigurationTarget>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for ReconfigurationTarget
impl Clone for ReconfigurationTarget
Source§fn clone(&self) -> ReconfigurationTarget
fn clone(&self) -> ReconfigurationTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReconfigurationTarget
impl Debug for ReconfigurationTarget
Source§impl<'de> Deserialize<'de> for ReconfigurationTarget
impl<'de> Deserialize<'de> for ReconfigurationTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReconfigurationTarget
Source§impl Ord for ReconfigurationTarget
impl Ord for ReconfigurationTarget
Source§fn cmp(&self, other: &ReconfigurationTarget) -> Ordering
fn cmp(&self, other: &ReconfigurationTarget) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReconfigurationTarget
impl PartialEq for ReconfigurationTarget
Source§impl PartialOrd for ReconfigurationTarget
impl PartialOrd for ReconfigurationTarget
Source§impl Serialize for ReconfigurationTarget
impl Serialize for ReconfigurationTarget
impl StructuralPartialEq for ReconfigurationTarget
Auto Trait Implementations§
impl Freeze for ReconfigurationTarget
impl RefUnwindSafe for ReconfigurationTarget
impl Send for ReconfigurationTarget
impl Sync for ReconfigurationTarget
impl Unpin for ReconfigurationTarget
impl UnsafeUnpin for ReconfigurationTarget
impl UnwindSafe for ReconfigurationTarget
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