#[non_exhaustive]pub struct AddPartitionsToTxnRequest {
pub transactions: Vec<AddPartitionsToTxnTransaction>,
pub v3_and_below_transactional_id: TransactionalId,
pub v3_and_below_producer_id: ProducerId,
pub v3_and_below_producer_epoch: i16,
pub v3_and_below_topics: Vec<AddPartitionsToTxnTopic>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-5
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.transactions: Vec<AddPartitionsToTxnTransaction>
List of transactions to add partitions to.
Supported API versions: 4-5
v3_and_below_transactional_id: TransactionalId
The transactional id corresponding to the transaction.
Supported API versions: 0-3
v3_and_below_producer_id: ProducerId
Current producer id in use by the transactional id.
Supported API versions: 0-3
v3_and_below_producer_epoch: i16
Current epoch associated with the producer id.
Supported API versions: 0-3
v3_and_below_topics: Vec<AddPartitionsToTxnTopic>
The partitions to add to the transaction.
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl AddPartitionsToTxnRequest
impl AddPartitionsToTxnRequest
Sourcepub fn with_transactions(
self,
value: Vec<AddPartitionsToTxnTransaction>,
) -> Self
pub fn with_transactions( self, value: Vec<AddPartitionsToTxnTransaction>, ) -> Self
Sets transactions
to the passed value.
List of transactions to add partitions to.
Supported API versions: 4-5
Sourcepub fn with_v3_and_below_transactional_id(self, value: TransactionalId) -> Self
pub fn with_v3_and_below_transactional_id(self, value: TransactionalId) -> Self
Sets v3_and_below_transactional_id
to the passed value.
The transactional id corresponding to the transaction.
Supported API versions: 0-3
Sourcepub fn with_v3_and_below_producer_id(self, value: ProducerId) -> Self
pub fn with_v3_and_below_producer_id(self, value: ProducerId) -> Self
Sets v3_and_below_producer_id
to the passed value.
Current producer id in use by the transactional id.
Supported API versions: 0-3
Sourcepub fn with_v3_and_below_producer_epoch(self, value: i16) -> Self
pub fn with_v3_and_below_producer_epoch(self, value: i16) -> Self
Sets v3_and_below_producer_epoch
to the passed value.
Current epoch associated with the producer id.
Supported API versions: 0-3
Sourcepub fn with_v3_and_below_topics(
self,
value: Vec<AddPartitionsToTxnTopic>,
) -> Self
pub fn with_v3_and_below_topics( self, value: Vec<AddPartitionsToTxnTopic>, ) -> Self
Sets v3_and_below_topics
to the passed value.
The partitions to add to the transaction.
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 AddPartitionsToTxnRequest
impl Clone for AddPartitionsToTxnRequest
Source§fn clone(&self) -> AddPartitionsToTxnRequest
fn clone(&self) -> AddPartitionsToTxnRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AddPartitionsToTxnRequest
impl Debug for AddPartitionsToTxnRequest
Source§impl Decodable for AddPartitionsToTxnRequest
Available on crate feature broker
only.
impl Decodable for AddPartitionsToTxnRequest
broker
only.Source§impl Default for AddPartitionsToTxnRequest
impl Default for AddPartitionsToTxnRequest
Source§impl Encodable for AddPartitionsToTxnRequest
Available on crate feature client
only.
impl Encodable for AddPartitionsToTxnRequest
client
only.Source§impl From<AddPartitionsToTxnRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<AddPartitionsToTxnRequest> for RequestKind
messages_enums
only.Source§fn from(value: AddPartitionsToTxnRequest) -> RequestKind
fn from(value: AddPartitionsToTxnRequest) -> RequestKind
Source§impl HeaderVersion for AddPartitionsToTxnRequest
impl HeaderVersion for AddPartitionsToTxnRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for AddPartitionsToTxnRequest
impl Message for AddPartitionsToTxnRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl Request for AddPartitionsToTxnRequest
Available on crate features client
and broker
only.
impl Request for AddPartitionsToTxnRequest
client
and broker
only.