pub struct EventBuilder { /* private fields */ }Expand description
Event ABI declaration builder.
Implementations§
Source§impl EventBuilder
impl EventBuilder
Sourcepub fn new<T: Into<String>>(abi_version: AbiVersion, name: T) -> Self
pub fn new<T: Into<String>>(abi_version: AbiVersion, name: T) -> Self
Creates an empty ABI declaration for an event with the specified ABI version and name.
Sourcepub fn with_inputs<I, T>(self, inputs: I) -> Self
pub fn with_inputs<I, T>(self, inputs: I) -> Self
Sets event input types to the specified list of named arguments.
Sourcepub fn with_unnamed_inputs<I: IntoIterator<Item = AbiType>>(
self,
inputs: I,
) -> Self
pub fn with_unnamed_inputs<I: IntoIterator<Item = AbiType>>( self, inputs: I, ) -> Self
Sets event input types to the specified list of unnamed arguments.
Trait Implementations§
Source§impl Clone for EventBuilder
impl Clone for EventBuilder
Source§fn clone(&self) -> EventBuilder
fn clone(&self) -> EventBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventBuilder
impl RefUnwindSafe for EventBuilder
impl Send for EventBuilder
impl Sync for EventBuilder
impl Unpin for EventBuilder
impl UnwindSafe for EventBuilder
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