#[non_exhaustive]pub struct DescribeTopicPartitionsResponsePartition {
pub error_code: i16,
pub partition_index: i32,
pub leader_id: BrokerId,
pub leader_epoch: i32,
pub replica_nodes: Vec<BrokerId>,
pub isr_nodes: Vec<BrokerId>,
pub eligible_leader_replicas: Option<Vec<BrokerId>>,
pub last_known_elr: Option<Vec<BrokerId>>,
pub offline_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.error_code: i16
The partition error, or 0 if there was no error.
Supported API versions: 0
partition_index: i32
The partition index.
Supported API versions: 0
leader_id: BrokerId
The ID of the leader broker.
Supported API versions: 0
leader_epoch: i32
The leader epoch of this partition.
Supported API versions: 0
replica_nodes: Vec<BrokerId>
The set of all nodes that host this partition.
Supported API versions: 0
isr_nodes: Vec<BrokerId>
The set of nodes that are in sync with the leader for this partition.
Supported API versions: 0
eligible_leader_replicas: Option<Vec<BrokerId>>
The new eligible leader replicas otherwise.
Supported API versions: 0
last_known_elr: Option<Vec<BrokerId>>
The last known ELR.
Supported API versions: 0
offline_replicas: Vec<BrokerId>
The set of offline replicas of this partition.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl DescribeTopicPartitionsResponsePartition
impl DescribeTopicPartitionsResponsePartition
Sourcepub fn with_error_code(self, value: i16) -> Self
pub fn with_error_code(self, value: i16) -> Self
Sets error_code
to the passed value.
The partition error, or 0 if there was no error.
Supported API versions: 0
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 partition index.
Supported API versions: 0
Sourcepub fn with_leader_id(self, value: BrokerId) -> Self
pub fn with_leader_id(self, value: BrokerId) -> Self
Sets leader_id
to the passed value.
The ID of the leader broker.
Supported API versions: 0
Sourcepub fn with_leader_epoch(self, value: i32) -> Self
pub fn with_leader_epoch(self, value: i32) -> Self
Sets leader_epoch
to the passed value.
The leader epoch of this partition.
Supported API versions: 0
Sourcepub fn with_replica_nodes(self, value: Vec<BrokerId>) -> Self
pub fn with_replica_nodes(self, value: Vec<BrokerId>) -> Self
Sets replica_nodes
to the passed value.
The set of all nodes that host this partition.
Supported API versions: 0
Sourcepub fn with_isr_nodes(self, value: Vec<BrokerId>) -> Self
pub fn with_isr_nodes(self, value: Vec<BrokerId>) -> Self
Sets isr_nodes
to the passed value.
The set of nodes that are in sync with the leader for this partition.
Supported API versions: 0
Sourcepub fn with_eligible_leader_replicas(self, value: Option<Vec<BrokerId>>) -> Self
pub fn with_eligible_leader_replicas(self, value: Option<Vec<BrokerId>>) -> Self
Sets eligible_leader_replicas
to the passed value.
The new eligible leader replicas otherwise.
Supported API versions: 0
Sourcepub fn with_last_known_elr(self, value: Option<Vec<BrokerId>>) -> Self
pub fn with_last_known_elr(self, value: Option<Vec<BrokerId>>) -> Self
Sets last_known_elr
to the passed value.
The last known ELR.
Supported API versions: 0
Sourcepub fn with_offline_replicas(self, value: Vec<BrokerId>) -> Self
pub fn with_offline_replicas(self, value: Vec<BrokerId>) -> Self
Sets offline_replicas
to the passed value.
The set of offline replicas of this partition.
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 DescribeTopicPartitionsResponsePartition
impl Clone for DescribeTopicPartitionsResponsePartition
Source§fn clone(&self) -> DescribeTopicPartitionsResponsePartition
fn clone(&self) -> DescribeTopicPartitionsResponsePartition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Decodable for DescribeTopicPartitionsResponsePartition
Available on crate feature client
only.
impl Decodable for DescribeTopicPartitionsResponsePartition
client
only.Source§impl Encodable for DescribeTopicPartitionsResponsePartition
Available on crate feature broker
only.
impl Encodable for DescribeTopicPartitionsResponsePartition
broker
only.Source§impl Message for DescribeTopicPartitionsResponsePartition
impl Message for DescribeTopicPartitionsResponsePartition
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for DescribeTopicPartitionsResponsePartition
impl PartialEq for DescribeTopicPartitionsResponsePartition
Source§fn eq(&self, other: &DescribeTopicPartitionsResponsePartition) -> bool
fn eq(&self, other: &DescribeTopicPartitionsResponsePartition) -> bool
self
and other
values to be equal, and is used by ==
.