#[non_exhaustive]pub struct CreateTopicsRequest {
pub topics: Vec<CreatableTopic>,
pub timeout_ms: i32,
pub validate_only: bool,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-7
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<CreatableTopic>
The topics to create.
Supported API versions: 0-7
timeout_ms: i32
How long to wait in milliseconds before timing out the request.
Supported API versions: 0-7
validate_only: bool
If true, check that the topics can be created as specified, but don’t create anything.
Supported API versions: 1-7
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl CreateTopicsRequest
impl CreateTopicsRequest
Sourcepub fn with_topics(self, value: Vec<CreatableTopic>) -> Self
pub fn with_topics(self, value: Vec<CreatableTopic>) -> Self
Sets topics
to the passed value.
The topics to create.
Supported API versions: 0-7
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.
How long to wait in milliseconds before timing out the request.
Supported API versions: 0-7
Sourcepub fn with_validate_only(self, value: bool) -> Self
pub fn with_validate_only(self, value: bool) -> Self
Sets validate_only
to the passed value.
If true, check that the topics can be created as specified, but don’t create anything.
Supported API versions: 1-7
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 CreateTopicsRequest
impl Clone for CreateTopicsRequest
Source§fn clone(&self) -> CreateTopicsRequest
fn clone(&self) -> CreateTopicsRequest
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 CreateTopicsRequest
impl Debug for CreateTopicsRequest
Source§impl Decodable for CreateTopicsRequest
Available on crate feature broker
only.
impl Decodable for CreateTopicsRequest
Available on crate feature
broker
only.Source§impl Default for CreateTopicsRequest
impl Default for CreateTopicsRequest
Source§impl Encodable for CreateTopicsRequest
Available on crate feature client
only.
impl Encodable for CreateTopicsRequest
Available on crate feature
client
only.Source§impl From<CreateTopicsRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<CreateTopicsRequest> for RequestKind
Available on crate feature
messages_enums
only.Source§fn from(value: CreateTopicsRequest) -> RequestKind
fn from(value: CreateTopicsRequest) -> RequestKind
Converts to this type from the input type.
Source§impl HeaderVersion for CreateTopicsRequest
impl HeaderVersion for CreateTopicsRequest
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 CreateTopicsRequest
impl Message for CreateTopicsRequest
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 CreateTopicsRequest
impl PartialEq for CreateTopicsRequest
Source§impl Request for CreateTopicsRequest
Available on crate features client
and broker
only.
impl Request for CreateTopicsRequest
Available on crate features
client
and broker
only.impl StructuralPartialEq for CreateTopicsRequest
Auto Trait Implementations§
impl Freeze for CreateTopicsRequest
impl RefUnwindSafe for CreateTopicsRequest
impl Send for CreateTopicsRequest
impl Sync for CreateTopicsRequest
impl Unpin for CreateTopicsRequest
impl UnwindSafe for CreateTopicsRequest
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