pub struct AddPartitionsToTxnRequestData {
pub transactions: Vec<AddPartitionsToTxnTransaction>,
pub v3_and_below_transactional_id: KafkaString,
pub v3_and_below_producer_id: i64,
pub v3_and_below_producer_epoch: i16,
pub v3_and_below_topics: Vec<AddPartitionsToTxnTopic>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§transactions: Vec<AddPartitionsToTxnTransaction>List of transactions to add partitions to.
v3_and_below_transactional_id: KafkaStringThe transactional id corresponding to the transaction.
v3_and_below_producer_id: i64Current producer id in use by the transactional id.
v3_and_below_producer_epoch: i16Current epoch associated with the producer id.
v3_and_below_topics: Vec<AddPartitionsToTxnTopic>The partitions to add to the transaction.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AddPartitionsToTxnRequestData
impl AddPartitionsToTxnRequestData
pub fn with_transactions( self, value: Vec<AddPartitionsToTxnTransaction>, ) -> Self
pub fn with_v3_and_below_transactional_id(self, value: KafkaString) -> Self
pub fn with_v3_and_below_producer_id(self, value: i64) -> Self
pub fn with_v3_and_below_producer_epoch(self, value: i16) -> Self
pub fn with_v3_and_below_topics( self, value: Vec<AddPartitionsToTxnTopic>, ) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for AddPartitionsToTxnRequestData
impl Clone for AddPartitionsToTxnRequestData
Source§fn clone(&self) -> AddPartitionsToTxnRequestData
fn clone(&self) -> AddPartitionsToTxnRequestData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for AddPartitionsToTxnRequestData
impl PartialEq for AddPartitionsToTxnRequestData
Source§fn eq(&self, other: &AddPartitionsToTxnRequestData) -> bool
fn eq(&self, other: &AddPartitionsToTxnRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddPartitionsToTxnRequestData
Auto Trait Implementations§
impl !Freeze for AddPartitionsToTxnRequestData
impl RefUnwindSafe for AddPartitionsToTxnRequestData
impl Send for AddPartitionsToTxnRequestData
impl Sync for AddPartitionsToTxnRequestData
impl Unpin for AddPartitionsToTxnRequestData
impl UnsafeUnpin for AddPartitionsToTxnRequestData
impl UnwindSafe for AddPartitionsToTxnRequestData
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