pub struct MetadataRequestData {
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: Vec<RawTaggedField>,
}Fields§
§topics: Option<Vec<MetadataRequestTopic>>The topics to fetch metadata for.
allow_auto_topic_creation: boolIf this is true, the broker may auto-create topics that we requested which do not already exist, if it is configured to do so.
Whether to include cluster authorized operations.
Whether to include topic authorized operations.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl MetadataRequestData
impl MetadataRequestData
pub fn with_topics(self, value: Option<Vec<MetadataRequestTopic>>) -> Self
pub fn with_allow_auto_topic_creation(self, value: bool) -> 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 MetadataRequestData
impl Clone for MetadataRequestData
Source§fn clone(&self) -> MetadataRequestData
fn clone(&self) -> MetadataRequestData
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 MetadataRequestData
impl Debug for MetadataRequestData
Source§impl Default for MetadataRequestData
impl Default for MetadataRequestData
Source§impl PartialEq for MetadataRequestData
impl PartialEq for MetadataRequestData
Source§fn eq(&self, other: &MetadataRequestData) -> bool
fn eq(&self, other: &MetadataRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataRequestData
Auto Trait Implementations§
impl Freeze for MetadataRequestData
impl RefUnwindSafe for MetadataRequestData
impl Send for MetadataRequestData
impl Sync for MetadataRequestData
impl Unpin for MetadataRequestData
impl UnsafeUnpin for MetadataRequestData
impl UnwindSafe for MetadataRequestData
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