pub struct TransactionContext {
pub transaction_id: String,
pub parent_transaction_id: Option<String>,
pub transaction_type: String,
pub metadata: HashMap<String, Value>,
}
Expand description
Transaction context for messages that are part of a transaction
Fields§
§transaction_id: String
The transaction ID
parent_transaction_id: Option<String>
Parent transaction ID if this is a sub-transaction
transaction_type: String
Transaction type (transfer, payment, etc.)
metadata: HashMap<String, Value>
Transaction metadata
Implementations§
Trait Implementations§
Source§impl Clone for TransactionContext
impl Clone for TransactionContext
Source§fn clone(&self) -> TransactionContext
fn clone(&self) -> TransactionContext
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 TransactionContext
impl Debug for TransactionContext
Source§impl<'de> Deserialize<'de> for TransactionContext
impl<'de> Deserialize<'de> for TransactionContext
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
Auto Trait Implementations§
impl Freeze for TransactionContext
impl RefUnwindSafe for TransactionContext
impl Send for TransactionContext
impl Sync for TransactionContext
impl Unpin for TransactionContext
impl UnwindSafe for TransactionContext
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