Struct ethers_core::abi::Event
source · pub struct Event {
pub name: String,
pub inputs: Vec<EventParam, Global>,
pub anonymous: bool,
}
Expand description
Contract event.
Fields§
§name: String
Event name.
inputs: Vec<EventParam, Global>
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. Read moresource§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