pub struct TransactionData {
pub slot: u64,
pub tx_index: u32,
pub signature: String,
pub success: bool,
pub fee: u64,
pub compute_units_consumed: Option<u64>,
pub is_vote: bool,
pub pre_balances: Vec<u64>,
pub post_balances: Vec<u64>,
pub log_messages: Option<Vec<String>>,
pub block_time: Option<i64>,
pub raw: Value,
}Expand description
Transaction-level data passed to Plugin::on_transaction.
One call per transaction in the block, in order of tx_index.
Carries the full transaction JSON in raw for custom parsing.
Fields§
§slot: u64§tx_index: u32§signature: String§success: bool§fee: u64§compute_units_consumed: Option<u64>§is_vote: bool§pre_balances: Vec<u64>§post_balances: Vec<u64>§log_messages: Option<Vec<String>>§block_time: Option<i64>§raw: ValueTrait Implementations§
Source§impl Clone for TransactionData
impl Clone for TransactionData
Source§fn clone(&self) -> TransactionData
fn clone(&self) -> TransactionData
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 TransactionData
impl Debug for TransactionData
Source§impl<'de> Deserialize<'de> for TransactionData
impl<'de> Deserialize<'de> for TransactionData
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 TransactionData
impl RefUnwindSafe for TransactionData
impl Send for TransactionData
impl Sync for TransactionData
impl Unpin for TransactionData
impl UnsafeUnpin for TransactionData
impl UnwindSafe for TransactionData
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