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
sourceimpl Event
impl Event
sourcepub fn filter(&self, raw: RawTopicFilter) -> Result<TopicFilter>
pub fn filter(&self, raw: RawTopicFilter) -> Result<TopicFilter>
Creates topic filter
sourcepub fn parse_log_whole(&self, log: RawLog) -> Result<Log>
pub fn parse_log_whole(&self, log: RawLog) -> Result<Log>
Parses RawLog
and retrieves all log params from it.
Fails, if some data left to decode
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more