pub struct MetadataResponseTopic {
pub error_code: i16,
pub name: Option<KafkaString>,
pub topic_id: KafkaUuid,
pub is_internal: bool,
pub partitions: Vec<MetadataResponsePartition>,
pub topic_authorized_operations: i32,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§error_code: i16The topic error, or 0 if there was no error.
name: Option<KafkaString>The topic name. Null for non-existing topics queried by ID. This is never null when ErrorCode is zero. One of Name and TopicId is always populated.
topic_id: KafkaUuidThe topic id. Zero for non-existing topics queried by name. This is never zero when ErrorCode is zero. One of Name and TopicId is always populated.
is_internal: boolTrue if the topic is internal.
partitions: Vec<MetadataResponsePartition>Each partition in the topic.
32-bit bitfield to represent authorized operations for this topic.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl MetadataResponseTopic
impl MetadataResponseTopic
pub fn with_error_code(self, value: i16) -> Self
pub fn with_name(self, value: Option<KafkaString>) -> Self
pub fn with_topic_id(self, value: KafkaUuid) -> Self
pub fn with_is_internal(self, value: bool) -> Self
pub fn with_partitions(self, value: Vec<MetadataResponsePartition>) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for MetadataResponseTopic
impl Clone for MetadataResponseTopic
Source§fn clone(&self) -> MetadataResponseTopic
fn clone(&self) -> MetadataResponseTopic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetadataResponseTopic
impl Debug for MetadataResponseTopic
Source§impl Default for MetadataResponseTopic
impl Default for MetadataResponseTopic
Source§impl PartialEq for MetadataResponseTopic
impl PartialEq for MetadataResponseTopic
Source§fn eq(&self, other: &MetadataResponseTopic) -> bool
fn eq(&self, other: &MetadataResponseTopic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataResponseTopic
Auto Trait Implementations§
impl !Freeze for MetadataResponseTopic
impl RefUnwindSafe for MetadataResponseTopic
impl Send for MetadataResponseTopic
impl Sync for MetadataResponseTopic
impl Unpin for MetadataResponseTopic
impl UnsafeUnpin for MetadataResponseTopic
impl UnwindSafe for MetadataResponseTopic
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