#[non_exhaustive]pub struct UpdateRaftVoterRequest {
pub cluster_id: Option<StrBytes>,
pub current_leader_epoch: i32,
pub voter_id: i32,
pub voter_directory_id: Uuid,
pub listeners: Vec<Listener>,
pub k_raft_version_feature: KRaftVersionFeature,
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.cluster_id: Option<StrBytes>
Supported API versions: 0
current_leader_epoch: i32
The current leader epoch of the partition, -1 for unknown leader epoch
Supported API versions: 0
voter_id: i32
The replica id of the voter getting updated in the topic partition
Supported API versions: 0
voter_directory_id: Uuid
The directory id of the voter getting updated in the topic partition
Supported API versions: 0
listeners: Vec<Listener>
The endpoint that can be used to communicate with the leader
Supported API versions: 0
k_raft_version_feature: KRaftVersionFeature
The range of versions of the protocol that the replica supports
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl UpdateRaftVoterRequest
impl UpdateRaftVoterRequest
Sourcepub fn with_cluster_id(self, value: Option<StrBytes>) -> Self
pub fn with_cluster_id(self, value: Option<StrBytes>) -> Self
Sets cluster_id
to the passed value.
Supported API versions: 0
Sourcepub fn with_current_leader_epoch(self, value: i32) -> Self
pub fn with_current_leader_epoch(self, value: i32) -> Self
Sets current_leader_epoch
to the passed value.
The current leader epoch of the partition, -1 for unknown leader epoch
Supported API versions: 0
Sourcepub fn with_voter_id(self, value: i32) -> Self
pub fn with_voter_id(self, value: i32) -> Self
Sets voter_id
to the passed value.
The replica id of the voter getting updated in the topic partition
Supported API versions: 0
Sourcepub fn with_voter_directory_id(self, value: Uuid) -> Self
pub fn with_voter_directory_id(self, value: Uuid) -> Self
Sets voter_directory_id
to the passed value.
The directory id of the voter getting updated in the topic partition
Supported API versions: 0
Sourcepub fn with_listeners(self, value: Vec<Listener>) -> Self
pub fn with_listeners(self, value: Vec<Listener>) -> Self
Sets listeners
to the passed value.
The endpoint that can be used to communicate with the leader
Supported API versions: 0
Sourcepub fn with_k_raft_version_feature(self, value: KRaftVersionFeature) -> Self
pub fn with_k_raft_version_feature(self, value: KRaftVersionFeature) -> Self
Sets k_raft_version_feature
to the passed value.
The range of versions of the protocol that the replica supports
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 UpdateRaftVoterRequest
impl Clone for UpdateRaftVoterRequest
Source§fn clone(&self) -> UpdateRaftVoterRequest
fn clone(&self) -> UpdateRaftVoterRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateRaftVoterRequest
impl Debug for UpdateRaftVoterRequest
Source§impl Decodable for UpdateRaftVoterRequest
Available on crate feature broker
only.
impl Decodable for UpdateRaftVoterRequest
broker
only.Source§impl Default for UpdateRaftVoterRequest
impl Default for UpdateRaftVoterRequest
Source§impl Encodable for UpdateRaftVoterRequest
Available on crate feature client
only.
impl Encodable for UpdateRaftVoterRequest
client
only.Source§impl From<UpdateRaftVoterRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<UpdateRaftVoterRequest> for RequestKind
messages_enums
only.Source§fn from(value: UpdateRaftVoterRequest) -> RequestKind
fn from(value: UpdateRaftVoterRequest) -> RequestKind
Source§impl HeaderVersion for UpdateRaftVoterRequest
impl HeaderVersion for UpdateRaftVoterRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for UpdateRaftVoterRequest
impl Message for UpdateRaftVoterRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for UpdateRaftVoterRequest
impl PartialEq for UpdateRaftVoterRequest
Source§impl Request for UpdateRaftVoterRequest
Available on crate features client
and broker
only.
impl Request for UpdateRaftVoterRequest
client
and broker
only.