pub struct MetadataRequest {
pub topics: Option<Vec<MetadataRequestTopic>>,
pub allow_auto_topic_creation: Option<Boolean>,
}Fields§
§topics: Option<Vec<MetadataRequestTopic>>The topics to fetch metadata for
Requests data for all topics if None
allow_auto_topic_creation: Option<Boolean>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.
Added in version 4
Trait Implementations§
Source§impl Debug for MetadataRequest
impl Debug for MetadataRequest
Source§impl RequestBody for MetadataRequest
impl RequestBody for MetadataRequest
Source§const API_VERSION_RANGE: ApiVersionRange
const API_VERSION_RANGE: ApiVersionRange
At the time of writing this is the same subset supported by rdkafka
Source§const FIRST_TAGGED_FIELD_IN_REQUEST_VERSION: ApiVersion
const FIRST_TAGGED_FIELD_IN_REQUEST_VERSION: ApiVersion
The first version of the messages (not of the header) that uses tagged fields, if any. Read more
Source§type ResponseBody = MetadataResponse
type ResponseBody = MetadataResponse
The response type that will follow when issuing this request.
Source§const FIRST_TAGGED_FIELD_IN_RESPONSE_VERSION: ApiVersion = Self::FIRST_TAGGED_FIELD_IN_REQUEST_VERSION
const FIRST_TAGGED_FIELD_IN_RESPONSE_VERSION: ApiVersion = Self::FIRST_TAGGED_FIELD_IN_REQUEST_VERSION
Normally the same as
FIRST_TAGGED_FIELD_IN_REQUEST_VERSION but
there are some special snowflakes.Source§impl<W> WriteVersionedType<W> for MetadataRequestwhere
W: Write,
impl<W> WriteVersionedType<W> for MetadataRequestwhere
W: Write,
fn write_versioned( &self, writer: &mut W, version: ApiVersion, ) -> Result<(), WriteVersionedError>
Auto Trait Implementations§
impl Freeze for MetadataRequest
impl RefUnwindSafe for MetadataRequest
impl Send for MetadataRequest
impl Sync for MetadataRequest
impl Unpin for MetadataRequest
impl UnwindSafe for MetadataRequest
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