pub struct MetadataResponse {
pub throttle_time_ms: Option<Int32>,
pub brokers: Vec<MetadataResponseBroker>,
pub cluster_id: Option<NullableString>,
pub controller_id: Option<Int32>,
pub topics: Vec<MetadataResponseTopic>,
}
Fields§
§throttle_time_ms: Option<Int32>
The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
Added in version 3
brokers: Vec<MetadataResponseBroker>
Each broker in the response
cluster_id: Option<NullableString>
The cluster ID that responding broker belongs to.
Added in version 2
controller_id: Option<Int32>
The ID of the controller broker.
Added in version 1
topics: Vec<MetadataResponseTopic>
Each topic in the response
Trait Implementations§
Source§impl Clone for MetadataResponse
impl Clone for MetadataResponse
Source§fn clone(&self) -> MetadataResponse
fn clone(&self) -> MetadataResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetadataResponse
impl Debug for MetadataResponse
Source§impl PartialEq for MetadataResponse
impl PartialEq for MetadataResponse
Source§impl<R> ReadVersionedType<R> for MetadataResponsewhere
R: Read,
impl<R> ReadVersionedType<R> for MetadataResponsewhere
R: Read,
fn read_versioned( reader: &mut R, version: ApiVersion, ) -> Result<Self, ReadVersionedError>
impl Eq for MetadataResponse
impl StructuralPartialEq for MetadataResponse
Auto Trait Implementations§
impl Freeze for MetadataResponse
impl RefUnwindSafe for MetadataResponse
impl Send for MetadataResponse
impl Sync for MetadataResponse
impl Unpin for MetadataResponse
impl UnwindSafe for MetadataResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more