#[non_exhaustive]pub struct CreatePartitionsRequest {
pub topics: Vec<CreatePartitionsTopic>,
pub timeout_ms: i32,
pub validate_only: bool,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-3
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.topics: Vec<CreatePartitionsTopic>
Each topic that we want to create new partitions inside.
Supported API versions: 0-3
timeout_ms: i32
The time in ms to wait for the partitions to be created.
Supported API versions: 0-3
validate_only: bool
If true, then validate the request, but don’t actually increase the number of partitions.
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl CreatePartitionsRequest
impl CreatePartitionsRequest
Sourcepub fn with_topics(self, value: Vec<CreatePartitionsTopic>) -> Self
pub fn with_topics(self, value: Vec<CreatePartitionsTopic>) -> Self
Sets topics
to the passed value.
Each topic that we want to create new partitions inside.
Supported API versions: 0-3
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 time in ms to wait for the partitions to be created.
Supported API versions: 0-3
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, then validate the request, but don’t actually increase the number of partitions.
Supported API versions: 0-3
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 CreatePartitionsRequest
impl Clone for CreatePartitionsRequest
Source§fn clone(&self) -> CreatePartitionsRequest
fn clone(&self) -> CreatePartitionsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreatePartitionsRequest
impl Debug for CreatePartitionsRequest
Source§impl Decodable for CreatePartitionsRequest
Available on crate feature broker
only.
impl Decodable for CreatePartitionsRequest
broker
only.Source§impl Default for CreatePartitionsRequest
impl Default for CreatePartitionsRequest
Source§impl Encodable for CreatePartitionsRequest
Available on crate feature client
only.
impl Encodable for CreatePartitionsRequest
client
only.Source§impl From<CreatePartitionsRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<CreatePartitionsRequest> for RequestKind
messages_enums
only.Source§fn from(value: CreatePartitionsRequest) -> RequestKind
fn from(value: CreatePartitionsRequest) -> RequestKind
Source§impl HeaderVersion for CreatePartitionsRequest
impl HeaderVersion for CreatePartitionsRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for CreatePartitionsRequest
impl Message for CreatePartitionsRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for CreatePartitionsRequest
impl PartialEq for CreatePartitionsRequest
Source§impl Request for CreatePartitionsRequest
Available on crate features client
and broker
only.
impl Request for CreatePartitionsRequest
client
and broker
only.