pub struct DecodedEvent {
pub chain: String,
pub schema: String,
pub address: String,
pub tx_hash: String,
pub block_number: u64,
pub log_index: u32,
pub fields_json: Value,
}Expand description
A decoded blockchain event (chain-agnostic representation).
In practice this will be a re-export of chaincodec’s DecodedEvent, but
chainindex-core avoids a direct chaincodec dependency to stay modular.
Fields§
§chain: StringChain identifier (e.g. "ethereum", "arbitrum").
schema: StringThe schema/event name (e.g. "ERC20Transfer").
address: StringContract address that emitted the event.
tx_hash: StringTransaction hash.
block_number: u64Block number.
log_index: u32Log index within the block.
fields_json: ValueRaw decoded fields as JSON for flexibility.
Trait Implementations§
Source§impl Clone for DecodedEvent
impl Clone for DecodedEvent
Source§fn clone(&self) -> DecodedEvent
fn clone(&self) -> DecodedEvent
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 DecodedEvent
impl Debug for DecodedEvent
Source§impl<'de> Deserialize<'de> for DecodedEvent
impl<'de> Deserialize<'de> for DecodedEvent
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 DecodedEvent
impl RefUnwindSafe for DecodedEvent
impl Send for DecodedEvent
impl Sync for DecodedEvent
impl Unpin for DecodedEvent
impl UnsafeUnpin for DecodedEvent
impl UnwindSafe for DecodedEvent
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