pub struct RawInstruction {
pub id: i64,
pub signature: String,
pub instruction_index: i32,
pub instruction_path: Option<String>,
pub program_id: String,
pub inner_program_id: String,
pub instruction_name: String,
pub accounts: Option<Value>,
pub args: Option<Value>,
pub slot: i64,
}Expand description
A decoded Solana instruction row as produced by the upstream indexer.
Fields§
§id: i64Database row id.
signature: StringTransaction signature (base58).
instruction_index: i32Position of this instruction within the transaction.
instruction_path: Option<String>Hierarchical instruction path within the transaction (for example "4.1").
program_id: StringTop-level program that was invoked.
inner_program_id: StringInnermost program if this is a CPI; equals program_id otherwise.
instruction_name: StringCarbon-decoded instruction discriminator name (e.g. "OpenDca").
accounts: Option<Value>Parsed account list, if available.
args: Option<Value>Parsed instruction arguments, if available.
slot: i64Solana slot in which the transaction landed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawInstruction
impl<'de> Deserialize<'de> for RawInstruction
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 RawInstruction
impl RefUnwindSafe for RawInstruction
impl Send for RawInstruction
impl Sync for RawInstruction
impl Unpin for RawInstruction
impl UnsafeUnpin for RawInstruction
impl UnwindSafe for RawInstruction
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> 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