#[non_exhaustive]pub struct WritableTxnMarker {
pub producer_id: ProducerId,
pub producer_epoch: i16,
pub transaction_result: bool,
pub topics: Vec<WritableTxnMarkerTopic>,
pub coordinator_epoch: i32,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-1
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.producer_id: ProducerId
The current producer ID.
Supported API versions: 0-1
producer_epoch: i16
The current epoch associated with the producer ID.
Supported API versions: 0-1
transaction_result: bool
The result of the transaction to write to the partitions (false = ABORT, true = COMMIT).
Supported API versions: 0-1
topics: Vec<WritableTxnMarkerTopic>
Each topic that we want to write transaction marker(s) for.
Supported API versions: 0-1
coordinator_epoch: i32
Epoch associated with the transaction state partition hosted by this transaction coordinator
Supported API versions: 0-1
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl WritableTxnMarker
impl WritableTxnMarker
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 current producer ID.
Supported API versions: 0-1
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 ID.
Supported API versions: 0-1
Sourcepub fn with_transaction_result(self, value: bool) -> Self
pub fn with_transaction_result(self, value: bool) -> Self
Sets transaction_result
to the passed value.
The result of the transaction to write to the partitions (false = ABORT, true = COMMIT).
Supported API versions: 0-1
Sourcepub fn with_topics(self, value: Vec<WritableTxnMarkerTopic>) -> Self
pub fn with_topics(self, value: Vec<WritableTxnMarkerTopic>) -> Self
Sets topics
to the passed value.
Each topic that we want to write transaction marker(s) for.
Supported API versions: 0-1
Sourcepub fn with_coordinator_epoch(self, value: i32) -> Self
pub fn with_coordinator_epoch(self, value: i32) -> Self
Sets coordinator_epoch
to the passed value.
Epoch associated with the transaction state partition hosted by this transaction coordinator
Supported API versions: 0-1
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 WritableTxnMarker
impl Clone for WritableTxnMarker
Source§fn clone(&self) -> WritableTxnMarker
fn clone(&self) -> WritableTxnMarker
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WritableTxnMarker
impl Debug for WritableTxnMarker
Source§impl Decodable for WritableTxnMarker
Available on crate feature broker
only.
impl Decodable for WritableTxnMarker
broker
only.Source§impl Default for WritableTxnMarker
impl Default for WritableTxnMarker
Source§impl Encodable for WritableTxnMarker
Available on crate feature client
only.
impl Encodable for WritableTxnMarker
client
only.