#[non_exhaustive]pub struct Voter {
pub voter_id: BrokerId,
pub voter_directory_id: Uuid,
pub endpoints: Vec<Endpoint>,
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.voter_id: BrokerId
The replica id of the voter in the topic partition
Supported API versions: 0
voter_directory_id: Uuid
The directory id of the voter in the topic partition
Supported API versions: 0
endpoints: Vec<Endpoint>
The endpoint that can be used to communicate with the voter
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 Voter
impl Voter
Sourcepub fn with_voter_id(self, value: BrokerId) -> Self
pub fn with_voter_id(self, value: BrokerId) -> Self
Sets voter_id
to the passed value.
The replica id of the voter 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 in the topic partition
Supported API versions: 0
Sourcepub fn with_endpoints(self, value: Vec<Endpoint>) -> Self
pub fn with_endpoints(self, value: Vec<Endpoint>) -> Self
Sets endpoints
to the passed value.
The endpoint that can be used to communicate with the voter
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.