pub struct TransactionMetadata {
pub tx_id: u64,
pub total_events: Option<u32>,
pub event_index: u32,
}Expand description
Transaction metadata when an event belongs to a multi-event transaction.
Fields§
§tx_id: u64Transaction identifier assigned by the source.
total_events: Option<u32>Total number of events expected in the transaction, if reported by the source.
None when the connector does not provide a total-event count for the transaction
(most CDC protocols do not). Connectors that do know the count should set this.
event_index: u32Zero-based position of this event within the transaction.
Trait Implementations§
Source§impl Clone for TransactionMetadata
impl Clone for TransactionMetadata
Source§fn clone(&self) -> TransactionMetadata
fn clone(&self) -> TransactionMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransactionMetadata
impl Debug for TransactionMetadata
Source§impl<'de> Deserialize<'de> for TransactionMetadata
impl<'de> Deserialize<'de> for TransactionMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransactionMetadata
Source§impl PartialEq for TransactionMetadata
impl PartialEq for TransactionMetadata
Source§fn eq(&self, other: &TransactionMetadata) -> bool
fn eq(&self, other: &TransactionMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TransactionMetadata
impl Serialize for TransactionMetadata
impl StructuralPartialEq for TransactionMetadata
Auto Trait Implementations§
impl Freeze for TransactionMetadata
impl RefUnwindSafe for TransactionMetadata
impl Send for TransactionMetadata
impl Sync for TransactionMetadata
impl Unpin for TransactionMetadata
impl UnsafeUnpin for TransactionMetadata
impl UnwindSafe for TransactionMetadata
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