Struct kafka_protocol::messages::end_txn_request::EndTxnRequest
source · #[non_exhaustive]pub struct EndTxnRequest {
pub transactional_id: TransactionalId,
pub producer_id: ProducerId,
pub producer_epoch: i16,
pub committed: 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.transactional_id: TransactionalIdThe ID of the transaction to end.
Supported API versions: 0-3
producer_id: ProducerIdThe producer ID.
Supported API versions: 0-3
producer_epoch: i16The current epoch associated with the producer.
Supported API versions: 0-3
committed: boolTrue if the transaction was committed, false if it was aborted.
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl EndTxnRequest
impl EndTxnRequest
sourcepub fn with_transactional_id(self, value: TransactionalId) -> Self
pub fn with_transactional_id(self, value: TransactionalId) -> Self
Sets transactional_id to the passed value.
The ID of the transaction to end.
Supported API versions: 0-3
sourcepub fn with_producer_id(self, value: ProducerId) -> Self
pub fn with_producer_id(self, value: ProducerId) -> Self
Sets producer_id to the passed value.
The producer ID.
Supported API versions: 0-3
sourcepub fn with_producer_epoch(self, value: i16) -> Self
pub fn with_producer_epoch(self, value: i16) -> Self
Sets producer_epoch to the passed value.
The current epoch associated with the producer.
Supported API versions: 0-3
sourcepub fn with_committed(self, value: bool) -> Self
pub fn with_committed(self, value: bool) -> Self
Sets committed to the passed value.
True if the transaction was committed, false if it was aborted.
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 EndTxnRequest
impl Clone for EndTxnRequest
source§fn clone(&self) -> EndTxnRequest
fn clone(&self) -> EndTxnRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EndTxnRequest
impl Debug for EndTxnRequest
source§impl Decodable for EndTxnRequest
impl Decodable for EndTxnRequest
source§impl Default for EndTxnRequest
impl Default for EndTxnRequest
source§impl Encodable for EndTxnRequest
impl Encodable for EndTxnRequest
source§impl From<EndTxnRequest> for RequestKind
impl From<EndTxnRequest> for RequestKind
source§fn from(value: EndTxnRequest) -> RequestKind
fn from(value: EndTxnRequest) -> RequestKind
source§impl HeaderVersion for EndTxnRequest
impl HeaderVersion for EndTxnRequest
source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
source§impl Message for EndTxnRequest
impl Message for EndTxnRequest
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for EndTxnRequest
impl PartialEq for EndTxnRequest
source§impl Request for EndTxnRequest
impl Request for EndTxnRequest
impl StructuralPartialEq for EndTxnRequest
Auto Trait Implementations§
impl !Freeze for EndTxnRequest
impl RefUnwindSafe for EndTxnRequest
impl Send for EndTxnRequest
impl Sync for EndTxnRequest
impl Unpin for EndTxnRequest
impl UnwindSafe for EndTxnRequest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)