#[non_exhaustive]pub struct AddRaftVoterRequest {
pub cluster_id: Option<StrBytes>,
pub timeout_ms: i32,
pub voter_id: i32,
pub voter_directory_id: Uuid,
pub listeners: Vec<Listener>,
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
timeout_ms: i32
Supported API versions: 0
voter_id: i32
The replica id of the voter getting added to the topic partition
Supported API versions: 0
voter_directory_id: Uuid
The directory id of the voter getting added to the topic partition
Supported API versions: 0
listeners: Vec<Listener>
The endpoints that can be used to communicate with the voter
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl AddRaftVoterRequest
impl AddRaftVoterRequest
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_timeout_ms(self, value: i32) -> Self
pub fn with_timeout_ms(self, value: i32) -> Self
Sets timeout_ms
to the passed value.
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 added to 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 added to 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 endpoints that can be used to communicate with the voter
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 AddRaftVoterRequest
impl Clone for AddRaftVoterRequest
Source§fn clone(&self) -> AddRaftVoterRequest
fn clone(&self) -> AddRaftVoterRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AddRaftVoterRequest
impl Debug for AddRaftVoterRequest
Source§impl Decodable for AddRaftVoterRequest
Available on crate feature broker
only.
impl Decodable for AddRaftVoterRequest
broker
only.Source§impl Default for AddRaftVoterRequest
impl Default for AddRaftVoterRequest
Source§impl Encodable for AddRaftVoterRequest
Available on crate feature client
only.
impl Encodable for AddRaftVoterRequest
client
only.Source§impl From<AddRaftVoterRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<AddRaftVoterRequest> for RequestKind
messages_enums
only.Source§fn from(value: AddRaftVoterRequest) -> RequestKind
fn from(value: AddRaftVoterRequest) -> RequestKind
Source§impl HeaderVersion for AddRaftVoterRequest
impl HeaderVersion for AddRaftVoterRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for AddRaftVoterRequest
impl Message for AddRaftVoterRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for AddRaftVoterRequest
impl PartialEq for AddRaftVoterRequest
Source§impl Request for AddRaftVoterRequest
Available on crate features client
and broker
only.
impl Request for AddRaftVoterRequest
client
and broker
only.