Struct ink_metadata::ContractSpecBuilder
source · pub struct ContractSpecBuilder<F, S = Invalid>where
F: Form,{ /* private fields */ }
Implementations§
source§impl<F> ContractSpecBuilder<F, Invalid>where
F: Form,
impl<F> ContractSpecBuilder<F, Invalid>where
F: Form,
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,
impl<F, S> ContractSpecBuilder<F, S>where
F: Form,
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
source§impl<F> ContractSpecBuilder<F, Valid>where
F: Form,
impl<F> ContractSpecBuilder<F, Valid>where
F: Form,
sourcepub fn done(self) -> ContractSpec<F>
pub fn done(self) -> ContractSpec<F>
Finalizes construction of the contract specification.