Struct ethers_core::abi::Event
source · pub struct Event {
pub name: String,
pub inputs: Vec<EventParam>,
pub anonymous: bool,
}
Expand description
Contract event.
Fields§
§name: String
Event name.
inputs: Vec<EventParam>
Event input.
anonymous: bool
If anonymous, event cannot be found using from
filter.
Implementations§
source§impl Event
impl Event
sourcepub fn filter(&self, raw: RawTopicFilter) -> Result<TopicFilter, Error>
pub fn filter(&self, raw: RawTopicFilter) -> Result<TopicFilter, Error>
Creates topic filter
Trait Implementations§
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EventExt for Event
impl EventExt for Event
source§fn abi_signature(&self) -> String
fn abi_signature(&self) -> String
Compute the event signature in human-readable format. The
keccak256
hash of this value is the actual event signature that is used as topic0
in the transaction logs.source§impl PartialEq for Event
impl PartialEq for Event
source§impl Serialize for Event
impl Serialize for Event
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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