#[non_exhaustive]pub struct DescribeTopicPartitionsResponseTopic {
pub error_code: i16,
pub name: Option<TopicName>,
pub topic_id: Uuid,
pub is_internal: bool,
pub partitions: Vec<DescribeTopicPartitionsResponsePartition>,
pub topic_authorized_operations: i32,
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.error_code: i16
The topic error, or 0 if there was no error.
Supported API versions: 0
name: Option<TopicName>
The topic name.
Supported API versions: 0
topic_id: Uuid
The topic id.
Supported API versions: 0
is_internal: bool
True if the topic is internal.
Supported API versions: 0
partitions: Vec<DescribeTopicPartitionsResponsePartition>
Each partition in the topic.
Supported API versions: 0
32-bit bitfield to represent authorized operations for this topic.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl DescribeTopicPartitionsResponseTopic
impl DescribeTopicPartitionsResponseTopic
Sourcepub fn with_error_code(self, value: i16) -> Self
pub fn with_error_code(self, value: i16) -> Self
Sets error_code
to the passed value.
The topic error, or 0 if there was no error.
Supported API versions: 0
Sourcepub fn with_name(self, value: Option<TopicName>) -> Self
pub fn with_name(self, value: Option<TopicName>) -> Self
Sets name
to the passed value.
The topic name.
Supported API versions: 0
Sourcepub fn with_topic_id(self, value: Uuid) -> Self
pub fn with_topic_id(self, value: Uuid) -> Self
Sets topic_id
to the passed value.
The topic id.
Supported API versions: 0
Sourcepub fn with_is_internal(self, value: bool) -> Self
pub fn with_is_internal(self, value: bool) -> Self
Sets is_internal
to the passed value.
True if the topic is internal.
Supported API versions: 0
Sourcepub fn with_partitions(
self,
value: Vec<DescribeTopicPartitionsResponsePartition>,
) -> Self
pub fn with_partitions( self, value: Vec<DescribeTopicPartitionsResponsePartition>, ) -> Self
Sets partitions
to the passed value.
Each partition in the topic.
Supported API versions: 0
Sets topic_authorized_operations
to the passed value.
32-bit bitfield to represent authorized operations for this topic.
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.
Trait Implementations§
Source§impl Clone for DescribeTopicPartitionsResponseTopic
impl Clone for DescribeTopicPartitionsResponseTopic
Source§fn clone(&self) -> DescribeTopicPartitionsResponseTopic
fn clone(&self) -> DescribeTopicPartitionsResponseTopic
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Decodable for DescribeTopicPartitionsResponseTopic
Available on crate feature client
only.
impl Decodable for DescribeTopicPartitionsResponseTopic
client
only.Source§impl Encodable for DescribeTopicPartitionsResponseTopic
Available on crate feature broker
only.
impl Encodable for DescribeTopicPartitionsResponseTopic
broker
only.Source§impl Message for DescribeTopicPartitionsResponseTopic
impl Message for DescribeTopicPartitionsResponseTopic
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for DescribeTopicPartitionsResponseTopic
impl PartialEq for DescribeTopicPartitionsResponseTopic
Source§fn eq(&self, other: &DescribeTopicPartitionsResponseTopic) -> bool
fn eq(&self, other: &DescribeTopicPartitionsResponseTopic) -> bool
self
and other
values to be equal, and is used by ==
.