#[non_exhaustive]pub struct OngoingPartitionReassignment {
pub partition_index: i32,
pub replicas: Vec<BrokerId>,
pub adding_replicas: Vec<BrokerId>,
pub removing_replicas: Vec<BrokerId>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.partition_index: i32
The index of the partition.
Supported API versions: 0
replicas: Vec<BrokerId>
The current replica set.
Supported API versions: 0
adding_replicas: Vec<BrokerId>
The set of replicas we are currently adding.
Supported API versions: 0
removing_replicas: Vec<BrokerId>
The set of replicas we are currently removing.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl OngoingPartitionReassignment
impl OngoingPartitionReassignment
Sourcepub fn with_partition_index(self, value: i32) -> Self
pub fn with_partition_index(self, value: i32) -> Self
Sets partition_index
to the passed value.
The index of the partition.
Supported API versions: 0
Sourcepub fn with_replicas(self, value: Vec<BrokerId>) -> Self
pub fn with_replicas(self, value: Vec<BrokerId>) -> Self
Sets replicas
to the passed value.
The current replica set.
Supported API versions: 0
Sourcepub fn with_adding_replicas(self, value: Vec<BrokerId>) -> Self
pub fn with_adding_replicas(self, value: Vec<BrokerId>) -> Self
Sets adding_replicas
to the passed value.
The set of replicas we are currently adding.
Supported API versions: 0
Sourcepub fn with_removing_replicas(self, value: Vec<BrokerId>) -> Self
pub fn with_removing_replicas(self, value: Vec<BrokerId>) -> Self
Sets removing_replicas
to the passed value.
The set of replicas we are currently removing.
Supported API versions: 0
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for OngoingPartitionReassignment
impl Clone for OngoingPartitionReassignment
Source§fn clone(&self) -> OngoingPartitionReassignment
fn clone(&self) -> OngoingPartitionReassignment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OngoingPartitionReassignment
impl Debug for OngoingPartitionReassignment
Source§impl Decodable for OngoingPartitionReassignment
Available on crate feature client
only.
impl Decodable for OngoingPartitionReassignment
client
only.Source§impl Encodable for OngoingPartitionReassignment
Available on crate feature broker
only.
impl Encodable for OngoingPartitionReassignment
broker
only.Source§impl Message for OngoingPartitionReassignment
impl Message for OngoingPartitionReassignment
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for OngoingPartitionReassignment
impl PartialEq for OngoingPartitionReassignment
Source§fn eq(&self, other: &OngoingPartitionReassignment) -> bool
fn eq(&self, other: &OngoingPartitionReassignment) -> bool
self
and other
values to be equal, and is used by ==
.