Struct parables_testing::prelude::ethabi::Event [−][src]
pub struct Event { pub name: String, pub inputs: Vec<EventParam>, pub anonymous: bool, }
Contract event.
Fields
name: String
Event name.
inputs: Vec<EventParam>
Event input.
anonymous: bool
If anonymous, event cannot be found using from
filter.
Methods
impl Event
[src]
impl Event
pub fn signature(&self) -> H256
[src]
pub fn signature(&self) -> H256
Event signature
pub fn filter(&self, raw: RawTopicFilter) -> Result<TopicFilter, Error>
[src]
pub fn filter(&self, raw: RawTopicFilter) -> Result<TopicFilter, Error>
Creates topic filter
pub fn parse_log(&self, log: RawLog) -> Result<Log, Error>
[src]
pub fn parse_log(&self, log: RawLog) -> Result<Log, Error>
Parses RawLog
and retrieves all log params from it.
Trait Implementations
impl PartialEq<Event> for Event
[src]
impl PartialEq<Event> for Event
fn eq(&self, other: &Event) -> bool
[src]
fn eq(&self, other: &Event) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Event) -> bool
[src]
fn ne(&self, other: &Event) -> bool
This method tests for !=
.
impl Clone for Event
[src]
impl Clone for Event
fn clone(&self) -> Event
[src]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Event
[src]
impl Debug for Event
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for Event
[src]
impl<'de> Deserialize<'de> for Event
fn deserialize<__D>(
__deserializer: __D
) -> Result<Event, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
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