pub struct EndTxnRequestData {
pub transactional_id: KafkaString,
pub producer_id: i64,
pub producer_epoch: i16,
pub committed: bool,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§transactional_id: KafkaStringThe ID of the transaction to end.
producer_id: i64The producer ID.
producer_epoch: i16The current epoch associated with the producer.
committed: boolTrue if the transaction was committed, false if it was aborted.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl EndTxnRequestData
impl EndTxnRequestData
pub fn with_transactional_id(self, value: KafkaString) -> Self
pub fn with_producer_id(self, value: i64) -> Self
pub fn with_producer_epoch(self, value: i16) -> Self
pub fn with_committed(self, value: bool) -> 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 EndTxnRequestData
impl Clone for EndTxnRequestData
Source§fn clone(&self) -> EndTxnRequestData
fn clone(&self) -> EndTxnRequestData
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 Debug for EndTxnRequestData
impl Debug for EndTxnRequestData
Source§impl Default for EndTxnRequestData
impl Default for EndTxnRequestData
Source§impl PartialEq for EndTxnRequestData
impl PartialEq for EndTxnRequestData
Source§fn eq(&self, other: &EndTxnRequestData) -> bool
fn eq(&self, other: &EndTxnRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EndTxnRequestData
Auto Trait Implementations§
impl !Freeze for EndTxnRequestData
impl RefUnwindSafe for EndTxnRequestData
impl Send for EndTxnRequestData
impl Sync for EndTxnRequestData
impl Unpin for EndTxnRequestData
impl UnsafeUnpin for EndTxnRequestData
impl UnwindSafe for EndTxnRequestData
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