#[non_exhaustive]pub struct TransactionState {
pub error_code: i16,
pub transactional_id: TransactionalId,
pub transaction_state: StrBytes,
pub transaction_timeout_ms: i32,
pub transaction_start_time_ms: i64,
pub producer_id: ProducerId,
pub producer_epoch: i16,
pub topics: Vec<TopicData>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
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.error_code: i16
Supported API versions: 0
transactional_id: TransactionalId
Supported API versions: 0
transaction_state: StrBytes
Supported API versions: 0
transaction_timeout_ms: i32
Supported API versions: 0
transaction_start_time_ms: i64
Supported API versions: 0
producer_id: ProducerId
Supported API versions: 0
producer_epoch: i16
Supported API versions: 0
topics: Vec<TopicData>
The set of partitions included in the current transaction (if active). When a transaction is preparing to commit or abort, this will include only partitions which do not have markers.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl TransactionState
impl TransactionState
Sourcepub fn with_error_code(self, value: i16) -> Self
pub fn with_error_code(self, value: i16) -> Self
Sets error_code
to the passed value.
Supported API versions: 0
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.
Supported API versions: 0
Sourcepub fn with_transaction_state(self, value: StrBytes) -> Self
pub fn with_transaction_state(self, value: StrBytes) -> Self
Sets transaction_state
to the passed value.
Supported API versions: 0
Sourcepub fn with_transaction_timeout_ms(self, value: i32) -> Self
pub fn with_transaction_timeout_ms(self, value: i32) -> Self
Sets transaction_timeout_ms
to the passed value.
Supported API versions: 0
Sourcepub fn with_transaction_start_time_ms(self, value: i64) -> Self
pub fn with_transaction_start_time_ms(self, value: i64) -> Self
Sets transaction_start_time_ms
to the passed value.
Supported API versions: 0
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.
Supported API versions: 0
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.
Supported API versions: 0
Sourcepub fn with_topics(self, value: Vec<TopicData>) -> Self
pub fn with_topics(self, value: Vec<TopicData>) -> Self
Sets topics
to the passed value.
The set of partitions included in the current transaction (if active). When a transaction is preparing to commit or abort, this will include only partitions which do not have markers.
Supported API versions: 0
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 TransactionState
impl Clone for TransactionState
Source§fn clone(&self) -> TransactionState
fn clone(&self) -> TransactionState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransactionState
impl Debug for TransactionState
Source§impl Decodable for TransactionState
Available on crate feature client
only.
impl Decodable for TransactionState
client
only.Source§impl Default for TransactionState
impl Default for TransactionState
Source§impl Encodable for TransactionState
Available on crate feature broker
only.
impl Encodable for TransactionState
broker
only.