pub struct AddOffsetsToTxnRequestData {
pub transactional_id: KafkaString,
pub producer_id: i64,
pub producer_epoch: i16,
pub group_id: KafkaString,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§transactional_id: KafkaStringThe transactional id corresponding to the transaction.
producer_id: i64Current producer id in use by the transactional id.
producer_epoch: i16Current epoch associated with the producer id.
group_id: KafkaStringThe unique group identifier.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AddOffsetsToTxnRequestData
impl AddOffsetsToTxnRequestData
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_group_id(self, value: KafkaString) -> 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 AddOffsetsToTxnRequestData
impl Clone for AddOffsetsToTxnRequestData
Source§fn clone(&self) -> AddOffsetsToTxnRequestData
fn clone(&self) -> AddOffsetsToTxnRequestData
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 AddOffsetsToTxnRequestData
impl Debug for AddOffsetsToTxnRequestData
Source§impl Default for AddOffsetsToTxnRequestData
impl Default for AddOffsetsToTxnRequestData
Source§impl PartialEq for AddOffsetsToTxnRequestData
impl PartialEq for AddOffsetsToTxnRequestData
Source§fn eq(&self, other: &AddOffsetsToTxnRequestData) -> bool
fn eq(&self, other: &AddOffsetsToTxnRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddOffsetsToTxnRequestData
Auto Trait Implementations§
impl !Freeze for AddOffsetsToTxnRequestData
impl RefUnwindSafe for AddOffsetsToTxnRequestData
impl Send for AddOffsetsToTxnRequestData
impl Sync for AddOffsetsToTxnRequestData
impl Unpin for AddOffsetsToTxnRequestData
impl UnsafeUnpin for AddOffsetsToTxnRequestData
impl UnwindSafe for AddOffsetsToTxnRequestData
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