Struct 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) -> Hash
[src]
pub fn signature(&self) -> Hash
Event signature
pub fn create_filter(&self, raw: RawTopicFilter) -> Result<TopicFilter>
[src]
pub fn create_filter(&self, raw: RawTopicFilter) -> Result<TopicFilter>
Creates topic filter
pub fn parse_log(&self, log: RawLog) -> Result<Log>
[src]
pub fn parse_log(&self, log: RawLog) -> Result<Log>
Parses RawLog
and retrieves all log params from it.
Trait Implementations
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
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Event
[src]
impl PartialEq for Event