#[non_exhaustive]pub struct UpdateMetadataBroker {
pub id: BrokerId,
pub v0_host: StrBytes,
pub v0_port: i32,
pub endpoints: Vec<UpdateMetadataEndpoint>,
pub rack: Option<StrBytes>,
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.id: BrokerId
The broker id.
Supported API versions: 0-8
v0_host: StrBytes
The broker hostname.
Supported API versions: 0
v0_port: i32
The broker port.
Supported API versions: 0
endpoints: Vec<UpdateMetadataEndpoint>
The broker endpoints.
Supported API versions: 1-8
rack: Option<StrBytes>
The rack which this broker belongs to.
Supported API versions: 2-8
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl UpdateMetadataBroker
impl UpdateMetadataBroker
Sourcepub fn with_id(self, value: BrokerId) -> Self
pub fn with_id(self, value: BrokerId) -> Self
Sets id
to the passed value.
The broker id.
Supported API versions: 0-8
Sourcepub fn with_v0_host(self, value: StrBytes) -> Self
pub fn with_v0_host(self, value: StrBytes) -> Self
Sets v0_host
to the passed value.
The broker hostname.
Supported API versions: 0
Sourcepub fn with_v0_port(self, value: i32) -> Self
pub fn with_v0_port(self, value: i32) -> Self
Sets v0_port
to the passed value.
The broker port.
Supported API versions: 0
Sourcepub fn with_endpoints(self, value: Vec<UpdateMetadataEndpoint>) -> Self
pub fn with_endpoints(self, value: Vec<UpdateMetadataEndpoint>) -> Self
Sets endpoints
to the passed value.
The broker endpoints.
Supported API versions: 1-8
Sourcepub fn with_rack(self, value: Option<StrBytes>) -> Self
pub fn with_rack(self, value: Option<StrBytes>) -> Self
Sets rack
to the passed value.
The rack which this broker belongs to.
Supported API versions: 2-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 UpdateMetadataBroker
impl Clone for UpdateMetadataBroker
Source§fn clone(&self) -> UpdateMetadataBroker
fn clone(&self) -> UpdateMetadataBroker
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpdateMetadataBroker
impl Debug for UpdateMetadataBroker
Source§impl Decodable for UpdateMetadataBroker
Available on crate feature broker
only.
impl Decodable for UpdateMetadataBroker
broker
only.Source§impl Default for UpdateMetadataBroker
impl Default for UpdateMetadataBroker
Source§impl Encodable for UpdateMetadataBroker
Available on crate feature client
only.
impl Encodable for UpdateMetadataBroker
client
only.