pub struct RawEvent {
pub id: i64,
pub signature: String,
pub event_index: i32,
pub program_id: String,
pub inner_program_id: String,
pub event_name: String,
pub fields: Option<Value>,
pub slot: i64,
}Expand description
A decoded Solana event (log) row as produced by the upstream indexer.
Fields§
§id: i64Database row id.
signature: StringTransaction signature (base58).
event_index: i32Position of this event within the transaction logs.
program_id: StringTop-level program that was invoked.
inner_program_id: StringInnermost program if this is a CPI; equals program_id otherwise.
event_name: StringCarbon-decoded event discriminator name (e.g. "FilledEvent").
fields: Option<Value>Parsed event fields as {"EventName": {..}} JSON.
slot: i64Solana slot in which the transaction landed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawEvent
impl<'de> Deserialize<'de> for RawEvent
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 RawEvent
impl RefUnwindSafe for RawEvent
impl Send for RawEvent
impl Sync for RawEvent
impl Unpin for RawEvent
impl UnsafeUnpin for RawEvent
impl UnwindSafe for RawEvent
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