pub struct DescribeTopicPartitionsResponseTopic {
pub error_code: i16,
pub name: Option<KafkaString>,
pub topic_id: KafkaUuid,
pub is_internal: bool,
pub partitions: Vec<DescribeTopicPartitionsResponsePartition>,
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.
topic_id: KafkaUuidThe topic id.
is_internal: boolTrue if the topic is internal.
partitions: Vec<DescribeTopicPartitionsResponsePartition>Each partition in the topic.
32-bit bitfield to represent authorized operations for this topic.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl DescribeTopicPartitionsResponseTopic
impl DescribeTopicPartitionsResponseTopic
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<DescribeTopicPartitionsResponsePartition>, ) -> 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 DescribeTopicPartitionsResponseTopic
impl Clone for DescribeTopicPartitionsResponseTopic
Source§fn clone(&self) -> DescribeTopicPartitionsResponseTopic
fn clone(&self) -> DescribeTopicPartitionsResponseTopic
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 PartialEq for DescribeTopicPartitionsResponseTopic
impl PartialEq for DescribeTopicPartitionsResponseTopic
Source§fn eq(&self, other: &DescribeTopicPartitionsResponseTopic) -> bool
fn eq(&self, other: &DescribeTopicPartitionsResponseTopic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DescribeTopicPartitionsResponseTopic
Auto Trait Implementations§
impl !Freeze for DescribeTopicPartitionsResponseTopic
impl RefUnwindSafe for DescribeTopicPartitionsResponseTopic
impl Send for DescribeTopicPartitionsResponseTopic
impl Sync for DescribeTopicPartitionsResponseTopic
impl Unpin for DescribeTopicPartitionsResponseTopic
impl UnsafeUnpin for DescribeTopicPartitionsResponseTopic
impl UnwindSafe for DescribeTopicPartitionsResponseTopic
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