#[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: ProducerIdThe current producer ID.
Supported API versions: 0-1
producer_epoch: i16The current epoch associated with the producer ID.
Supported API versions: 0-1
transaction_result: boolThe 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: i32Epoch 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
impl Decodable for WritableTxnMarker
source§impl Default for WritableTxnMarker
impl Default for WritableTxnMarker
source§impl Encodable for WritableTxnMarker
impl Encodable for WritableTxnMarker
source§impl Message for WritableTxnMarker
impl Message for WritableTxnMarker
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for WritableTxnMarker
impl PartialEq for WritableTxnMarker
impl StructuralPartialEq for WritableTxnMarker
Auto Trait Implementations§
impl Freeze for WritableTxnMarker
impl RefUnwindSafe for WritableTxnMarker
impl Send for WritableTxnMarker
impl Sync for WritableTxnMarker
impl Unpin for WritableTxnMarker
impl UnwindSafe for WritableTxnMarker
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)