pub struct TransactionListing { /* private fields */ }Expand description
A transaction listing.
Corresponds to org.apache.kafka.clients.admin.TransactionListing.
producer_id is i64 (Java long).
Implementations§
Source§impl TransactionListing
impl TransactionListing
Sourcepub fn new(
transactional_id: impl Into<String>,
producer_id: i64,
transaction_state: TransactionState,
) -> Self
pub fn new( transactional_id: impl Into<String>, producer_id: i64, transaction_state: TransactionState, ) -> Self
Creates a new TransactionListing.
Sourcepub fn transactional_id(&self) -> &str
pub fn transactional_id(&self) -> &str
The transactional id of the transaction.
Sourcepub fn producer_id(&self) -> i64
pub fn producer_id(&self) -> i64
The producer id of the transaction.
Sourcepub fn state(&self) -> TransactionState
pub fn state(&self) -> TransactionState
The current state of the transaction.
Trait Implementations§
Source§impl Clone for TransactionListing
impl Clone for TransactionListing
Source§fn clone(&self) -> TransactionListing
fn clone(&self) -> TransactionListing
Returns a duplicate of the value. Read more
1.0.0 · 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 TransactionListing
impl Debug for TransactionListing
Source§impl Display for TransactionListing
impl Display for TransactionListing
Source§impl Hash for TransactionListing
impl Hash for TransactionListing
Source§impl PartialEq for TransactionListing
impl PartialEq for TransactionListing
impl Eq for TransactionListing
impl StructuralPartialEq for TransactionListing
Auto Trait Implementations§
impl Freeze for TransactionListing
impl RefUnwindSafe for TransactionListing
impl Send for TransactionListing
impl Sync for TransactionListing
impl Unpin for TransactionListing
impl UnsafeUnpin for TransactionListing
impl UnwindSafe for TransactionListing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more