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