Struct ink_metadata::ContractSpecBuilder
source · pub struct ContractSpecBuilder<F, S = Invalid>where
F: Form,
TypeSpec<F>: Default,{ /* private fields */ }
Implementations§
source§impl<F> ContractSpecBuilder<F, Invalid>where
F: Form,
TypeSpec<F>: Default,
impl<F> ContractSpecBuilder<F, Invalid>where F: Form, TypeSpec<F>: Default,
sourcepub fn constructors<C>(self, constructors: C) -> ContractSpecBuilder<F, Valid>where
C: IntoIterator<Item = ConstructorSpec<F>>,
pub fn constructors<C>(self, constructors: C) -> ContractSpecBuilder<F, Valid>where C: IntoIterator<Item = ConstructorSpec<F>>,
Sets the constructors of the contract specification.
source§impl<F, S> ContractSpecBuilder<F, S>where
F: Form,
TypeSpec<F>: Default,
impl<F, S> ContractSpecBuilder<F, S>where F: Form, TypeSpec<F>: Default,
sourcepub fn messages<M>(self, messages: M) -> Selfwhere
M: IntoIterator<Item = MessageSpec<F>>,
pub fn messages<M>(self, messages: M) -> Selfwhere M: IntoIterator<Item = MessageSpec<F>>,
Sets the messages of the contract specification.
sourcepub fn events<E>(self, events: E) -> Selfwhere
E: IntoIterator<Item = EventSpec<F>>,
pub fn events<E>(self, events: E) -> Selfwhere E: IntoIterator<Item = EventSpec<F>>,
Sets the events of the contract specification.
sourcepub fn docs<D>(self, docs: D) -> Selfwhere
D: IntoIterator<Item = <F as Form>::String>,
pub fn docs<D>(self, docs: D) -> Selfwhere D: IntoIterator<Item = <F as Form>::String>,
Sets the documentation of the contract specification.
sourcepub fn lang_error(self, lang_error: TypeSpec<F>) -> Self
pub fn lang_error(self, lang_error: TypeSpec<F>) -> Self
Sets the language error of the contract specification.
sourcepub fn environment(self, environment: EnvironmentSpec<F>) -> Self
pub fn environment(self, environment: EnvironmentSpec<F>) -> Self
Sets the environment types of the contract specification.
source§impl<S> ContractSpecBuilder<MetaForm, S>
impl<S> ContractSpecBuilder<MetaForm, S>
sourcepub fn collect_events(self) -> Self
pub fn collect_events(self) -> Self
Collect metadata for all events linked into the contract.
source§impl<F> ContractSpecBuilder<F, Valid>where
F: Form,
F::String: Display,
TypeSpec<F>: Default,
impl<F> ContractSpecBuilder<F, Valid>where F: Form, F::String: Display, TypeSpec<F>: Default,
sourcepub fn done(self) -> ContractSpec<F>
pub fn done(self) -> ContractSpec<F>
Finalizes construction of the contract specification.
Auto Trait Implementations§
impl<F, S> RefUnwindSafe for ContractSpecBuilder<F, S>where <F as Form>::String: RefUnwindSafe, <F as Form>::Type: RefUnwindSafe,
impl<F, S> Send for ContractSpecBuilder<F, S>where <F as Form>::String: Send, <F as Form>::Type: Send,
impl<F, S> Sync for ContractSpecBuilder<F, S>where <F as Form>::String: Sync, <F as Form>::Type: Sync,
impl<F, S> Unpin for ContractSpecBuilder<F, S>where <F as Form>::String: Unpin, <F as Form>::Type: Unpin,
impl<F, S> UnwindSafe for ContractSpecBuilder<F, S>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