Struct ink_metadata::EventSpecBuilder
source · pub struct EventSpecBuilder<F>where
F: Form,{ /* private fields */ }
Expand description
An event specification builder.
Implementations§
source§impl<F> EventSpecBuilder<F>where
F: Form,
impl<F> EventSpecBuilder<F>where
F: Form,
sourcepub fn module_path<'a>(self, path: &'a str) -> Self
pub fn module_path<'a>(self, path: &'a str) -> Self
Sets the module path to the event type definition.
sourcepub fn args<A>(self, args: A) -> Selfwhere
A: IntoIterator<Item = EventParamSpec<F>>,
pub fn args<A>(self, args: A) -> Selfwhere
A: IntoIterator<Item = EventParamSpec<F>>,
Sets the input arguments of the event specification.
sourcepub fn signature_topic<T>(self, topic: Option<T>) -> Self
pub fn signature_topic<T>(self, topic: Option<T>) -> Self
Sets the signature topic of the event specification.
Auto Trait Implementations§
impl<F> Freeze for EventSpecBuilder<F>where
<F as Form>::String: Freeze,
impl<F> RefUnwindSafe for EventSpecBuilder<F>where
<F as Form>::String: RefUnwindSafe,
<F as Form>::Type: RefUnwindSafe,
impl<F> Send for EventSpecBuilder<F>
impl<F> Sync for EventSpecBuilder<F>
impl<F> Unpin for EventSpecBuilder<F>
impl<F> UnwindSafe for EventSpecBuilder<F>where
<F as Form>::String: UnwindSafe,
<F as Form>::Type: UnwindSafe,
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