#[non_exhaustive]pub struct UpdateMetadataPartitionState {
pub topic_name: TopicName,
pub partition_index: i32,
pub controller_epoch: i32,
pub leader: BrokerId,
pub leader_epoch: i32,
pub isr: Vec<BrokerId>,
pub zk_version: i32,
pub replicas: Vec<BrokerId>,
pub offline_replicas: Vec<BrokerId>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-8
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.topic_name: TopicName
In older versions of this RPC, the topic name.
Supported API versions: 0-4
partition_index: i32
The partition index.
Supported API versions: 0-8
controller_epoch: i32
The controller epoch.
Supported API versions: 0-8
leader: BrokerId
The ID of the broker which is the current partition leader.
Supported API versions: 0-8
leader_epoch: i32
The leader epoch of this partition.
Supported API versions: 0-8
isr: Vec<BrokerId>
The brokers which are in the ISR for this partition.
Supported API versions: 0-8
zk_version: i32
The Zookeeper version.
Supported API versions: 0-8
replicas: Vec<BrokerId>
All the replicas of this partition.
Supported API versions: 0-8
offline_replicas: Vec<BrokerId>
The replicas of this partition which are offline.
Supported API versions: 4-8
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl UpdateMetadataPartitionState
impl UpdateMetadataPartitionState
Sourcepub fn with_topic_name(self, value: TopicName) -> Self
pub fn with_topic_name(self, value: TopicName) -> Self
Sets topic_name
to the passed value.
In older versions of this RPC, the topic name.
Supported API versions: 0-4
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-8
Sourcepub fn with_controller_epoch(self, value: i32) -> Self
pub fn with_controller_epoch(self, value: i32) -> Self
Sets controller_epoch
to the passed value.
The controller epoch.
Supported API versions: 0-8
Sourcepub fn with_leader(self, value: BrokerId) -> Self
pub fn with_leader(self, value: BrokerId) -> Self
Sets leader
to the passed value.
The ID of the broker which is the current partition leader.
Supported API versions: 0-8
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-8
Sourcepub fn with_isr(self, value: Vec<BrokerId>) -> Self
pub fn with_isr(self, value: Vec<BrokerId>) -> Self
Sets isr
to the passed value.
The brokers which are in the ISR for this partition.
Supported API versions: 0-8
Sourcepub fn with_zk_version(self, value: i32) -> Self
pub fn with_zk_version(self, value: i32) -> Self
Sets zk_version
to the passed value.
The Zookeeper version.
Supported API versions: 0-8
Sourcepub fn with_replicas(self, value: Vec<BrokerId>) -> Self
pub fn with_replicas(self, value: Vec<BrokerId>) -> Self
Sets replicas
to the passed value.
All the replicas of this partition.
Supported API versions: 0-8
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 replicas of this partition which are offline.
Supported API versions: 4-8
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 UpdateMetadataPartitionState
impl Clone for UpdateMetadataPartitionState
Source§fn clone(&self) -> UpdateMetadataPartitionState
fn clone(&self) -> UpdateMetadataPartitionState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateMetadataPartitionState
impl Debug for UpdateMetadataPartitionState
Source§impl Decodable for UpdateMetadataPartitionState
Available on crate feature broker
only.
impl Decodable for UpdateMetadataPartitionState
broker
only.Source§impl Encodable for UpdateMetadataPartitionState
Available on crate feature client
only.
impl Encodable for UpdateMetadataPartitionState
client
only.Source§impl Message for UpdateMetadataPartitionState
impl Message for UpdateMetadataPartitionState
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for UpdateMetadataPartitionState
impl PartialEq for UpdateMetadataPartitionState
Source§fn eq(&self, other: &UpdateMetadataPartitionState) -> bool
fn eq(&self, other: &UpdateMetadataPartitionState) -> bool
self
and other
values to be equal, and is used by ==
.