#[non_exhaustive]pub struct MetadataRequest {
pub topics: Option<Vec<MetadataRequestTopic>>,
pub allow_auto_topic_creation: bool,
pub include_cluster_authorized_operations: bool,
pub include_topic_authorized_operations: bool,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-12
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.topics: Option<Vec<MetadataRequestTopic>>
The topics to fetch metadata for.
Supported API versions: 0-12
allow_auto_topic_creation: bool
If this is true, the broker may auto-create topics that we requested which do not already exist, if it is configured to do so.
Supported API versions: 4-12
Whether to include cluster authorized operations.
Supported API versions: 8-10
Whether to include topic authorized operations.
Supported API versions: 8-12
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl MetadataRequest
impl MetadataRequest
Sourcepub fn with_topics(self, value: Option<Vec<MetadataRequestTopic>>) -> Self
pub fn with_topics(self, value: Option<Vec<MetadataRequestTopic>>) -> Self
Sets topics
to the passed value.
The topics to fetch metadata for.
Supported API versions: 0-12
Sourcepub fn with_allow_auto_topic_creation(self, value: bool) -> Self
pub fn with_allow_auto_topic_creation(self, value: bool) -> Self
Sets allow_auto_topic_creation
to the passed value.
If this is true, the broker may auto-create topics that we requested which do not already exist, if it is configured to do so.
Supported API versions: 4-12
Sets include_cluster_authorized_operations
to the passed value.
Whether to include cluster authorized operations.
Supported API versions: 8-10
Sets include_topic_authorized_operations
to the passed value.
Whether to include topic authorized operations.
Supported API versions: 8-12
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 MetadataRequest
impl Clone for MetadataRequest
Source§fn clone(&self) -> MetadataRequest
fn clone(&self) -> MetadataRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MetadataRequest
impl Debug for MetadataRequest
Source§impl Decodable for MetadataRequest
Available on crate feature broker
only.
impl Decodable for MetadataRequest
broker
only.Source§impl Default for MetadataRequest
impl Default for MetadataRequest
Source§impl Encodable for MetadataRequest
Available on crate feature client
only.
impl Encodable for MetadataRequest
client
only.Source§impl From<MetadataRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<MetadataRequest> for RequestKind
messages_enums
only.Source§fn from(value: MetadataRequest) -> RequestKind
fn from(value: MetadataRequest) -> RequestKind
Source§impl HeaderVersion for MetadataRequest
impl HeaderVersion for MetadataRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for MetadataRequest
impl Message for MetadataRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange>
const DEPRECATED_VERSIONS: Option<VersionRange>
Source§impl PartialEq for MetadataRequest
impl PartialEq for MetadataRequest
Source§impl Request for MetadataRequest
Available on crate features client
and broker
only.
impl Request for MetadataRequest
client
and broker
only.