pub struct TransactionMetadata {
pub slot: u64,
pub signature: Signature,
pub fee_payer: Pubkey,
pub meta: TransactionStatusMeta,
pub message: VersionedMessage,
pub index: Option<u64>,
pub block_time: Option<i64>,
pub block_hash: Option<Hash>,
}Expand description
Per-transaction context shared across all of its instructions.
Built from a TransactionUpdate via TryFrom. Wrapped in Arc
inside the pipeline so child instructions cheaply reference it.
Fields§
§slot: u64§signature: Signature§fee_payer: Pubkey§meta: TransactionStatusMeta§message: VersionedMessage§index: Option<u64>§block_time: Option<i64>§block_hash: Option<Hash>Trait Implementations§
Source§impl Clone for TransactionMetadata
impl Clone for TransactionMetadata
Source§impl Debug for TransactionMetadata
impl Debug for TransactionMetadata
Source§impl Default for TransactionMetadata
impl Default 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more