pub struct DecodedEvent {
pub name: String,
pub indexed: Vec<[u8; 32]>,
pub data: Vec<Value>,
}Expand description
Decoded event — typed name + (topic, data) split per ABI.
Returned by Contract::decode_event. Indexed parameters are
preserved in topics (one per indexed parameter, in declaration
order — after topic 0, the event signature). Non-indexed
parameters are Borsh-decoded from data.
Fields§
§name: StringEvent name as declared in the ABI.
indexed: Vec<[u8; 32]>Indexed parameter values in declaration order. v1 stores each indexed value as a raw 32-byte topic — the caller’s typed wrapper is responsible for interpreting the bytes (the SDK doesn’t yet attempt to decode arbitrary types from 32-byte topic words).
data: Vec<Value>Non-indexed parameter values, in declaration order, decoded
from the event data payload.
Trait Implementations§
Source§impl Clone for DecodedEvent
impl Clone for DecodedEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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