pub struct DecodedEvent {
pub selector: Option<B256>,
pub indexed: Vec<DynSolValue>,
pub body: Vec<DynSolValue>,
}
Expand description
A decoded dynamic ABI event.
Fields§
§selector: Option<B256>
The hashes event_signature (if any)
indexed: Vec<DynSolValue>
The indexed values, in order.
body: Vec<DynSolValue>
The un-indexed values, in order.
Implementations§
Source§impl DecodedEvent
impl DecodedEvent
Sourcepub const fn is_anonymous(&self) -> bool
pub const fn is_anonymous(&self) -> bool
True if anonymous. False if not.
Sourcepub fn encode_log_data(&self) -> LogData
pub fn encode_log_data(&self) -> LogData
Re-encode the event into a LogData
Trait Implementations§
Source§impl Clone for DecodedEvent
impl Clone for DecodedEvent
Source§fn clone(&self) -> DecodedEvent
fn clone(&self) -> DecodedEvent
Returns a copy 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 IntoLogData for DecodedEvent
impl IntoLogData for DecodedEvent
Source§fn to_log_data(&self) -> LogData
fn to_log_data(&self) -> LogData
Convert into a
LogData
object.Source§fn into_log_data(self) -> LogData
fn into_log_data(self) -> LogData
Consume and convert into a
LogData
object.Source§impl PartialEq for DecodedEvent
impl PartialEq for DecodedEvent
impl StructuralPartialEq 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)