#[non_exhaustive]pub struct DeleteTopicsRequest {
pub topics: Vec<DeleteTopicState>,
pub topic_names: Vec<TopicName>,
pub timeout_ms: i32,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-6
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.topics: Vec<DeleteTopicState>
The name or topic ID of the topic
Supported API versions: 6
topic_names: Vec<TopicName>
The names of the topics to delete
Supported API versions: 0-5
timeout_ms: i32
The length of time in milliseconds to wait for the deletions to complete.
Supported API versions: 0-6
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl DeleteTopicsRequest
impl DeleteTopicsRequest
Sourcepub fn with_topics(self, value: Vec<DeleteTopicState>) -> Self
pub fn with_topics(self, value: Vec<DeleteTopicState>) -> Self
Sets topics
to the passed value.
The name or topic ID of the topic
Supported API versions: 6
Sourcepub fn with_topic_names(self, value: Vec<TopicName>) -> Self
pub fn with_topic_names(self, value: Vec<TopicName>) -> Self
Sets topic_names
to the passed value.
The names of the topics to delete
Supported API versions: 0-5
Sourcepub fn with_timeout_ms(self, value: i32) -> Self
pub fn with_timeout_ms(self, value: i32) -> Self
Sets timeout_ms
to the passed value.
The length of time in milliseconds to wait for the deletions to complete.
Supported API versions: 0-6
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 DeleteTopicsRequest
impl Clone for DeleteTopicsRequest
Source§fn clone(&self) -> DeleteTopicsRequest
fn clone(&self) -> DeleteTopicsRequest
Returns a copy of the value. Read more
1.0.0 · 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 DeleteTopicsRequest
impl Debug for DeleteTopicsRequest
Source§impl Decodable for DeleteTopicsRequest
Available on crate feature broker
only.
impl Decodable for DeleteTopicsRequest
Available on crate feature
broker
only.Source§impl Default for DeleteTopicsRequest
impl Default for DeleteTopicsRequest
Source§impl Encodable for DeleteTopicsRequest
Available on crate feature client
only.
impl Encodable for DeleteTopicsRequest
Available on crate feature
client
only.Source§impl From<DeleteTopicsRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<DeleteTopicsRequest> for RequestKind
Available on crate feature
messages_enums
only.Source§fn from(value: DeleteTopicsRequest) -> RequestKind
fn from(value: DeleteTopicsRequest) -> RequestKind
Converts to this type from the input type.
Source§impl HeaderVersion for DeleteTopicsRequest
impl HeaderVersion for DeleteTopicsRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Maps a header version to a given version for a particular API message.
Source§impl Message for DeleteTopicsRequest
impl Message for DeleteTopicsRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Source§const DEPRECATED_VERSIONS: Option<VersionRange>
const DEPRECATED_VERSIONS: Option<VersionRange>
The deprecated versions for this message.
Source§impl PartialEq for DeleteTopicsRequest
impl PartialEq for DeleteTopicsRequest
Source§impl Request for DeleteTopicsRequest
Available on crate features client
and broker
only.
impl Request for DeleteTopicsRequest
Available on crate features
client
and broker
only.impl StructuralPartialEq for DeleteTopicsRequest
Auto Trait Implementations§
impl Freeze for DeleteTopicsRequest
impl RefUnwindSafe for DeleteTopicsRequest
impl Send for DeleteTopicsRequest
impl Sync for DeleteTopicsRequest
impl Unpin for DeleteTopicsRequest
impl UnwindSafe for DeleteTopicsRequest
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