pub fn encode_metadata_request_topics(
buf: &mut BytesMut,
version: i16,
topics: Option<&[MetadataRequestTopic]>,
allow_auto: bool,
include_topic_authorized_operations: bool,
) -> Result<()>Expand description
Encode Metadata Topics of Name and/or TopicId (v10+).
Java describeTopics(TopicCollection.ofTopicIds) sends Name null
and TopicId set. topics = None asks for all topics.
Java MetadataRequest.Builder.build rejects versions older than 1,
allowAutoTopicCreation false below v4, and a null Name or non-zero
TopicId below v12 (MetadataRequest::build).
IncludeClusterAuthorizedOperations is false (JSON default). Use
encode_metadata_request_topics_with_include_cluster_authorized_operations
for v8–v10.