Struct ink_metadata::ContractSpecBuilder
source · [−]pub struct ContractSpecBuilder<S = Invalid> { /* private fields */ }
Expand description
A builder for contracts.
Implementations
sourceimpl ContractSpecBuilder<Invalid>
impl ContractSpecBuilder<Invalid>
sourcepub fn constructors<C>(self, constructors: C) -> ContractSpecBuilder<Valid>where
C: IntoIterator<Item = ConstructorSpec>,
pub fn constructors<C>(self, constructors: C) -> ContractSpecBuilder<Valid>where
C: IntoIterator<Item = ConstructorSpec>,
Sets the constructors of the contract specification.
sourceimpl<S> ContractSpecBuilder<S>
impl<S> ContractSpecBuilder<S>
sourcepub fn messages<M>(self, messages: M) -> Selfwhere
M: IntoIterator<Item = MessageSpec>,
pub fn messages<M>(self, messages: M) -> Selfwhere
M: IntoIterator<Item = MessageSpec>,
Sets the messages of the contract specification.
sourcepub fn events<E>(self, events: E) -> Selfwhere
E: IntoIterator<Item = EventSpec>,
pub fn events<E>(self, events: E) -> Selfwhere
E: IntoIterator<Item = EventSpec>,
Sets the events of the contract specification.
sourcepub fn docs<D>(self, docs: D) -> Selfwhere
D: IntoIterator<Item = &'static str>,
pub fn docs<D>(self, docs: D) -> Selfwhere
D: IntoIterator<Item = &'static str>,
Sets the documentation of the contract specification.
sourceimpl ContractSpecBuilder<Valid>
impl ContractSpecBuilder<Valid>
sourcepub fn done(self) -> ContractSpec
pub fn done(self) -> ContractSpec
Finalizes construction of the contract specification.
Auto Trait Implementations
impl<S> RefUnwindSafe for ContractSpecBuilder<S>
impl<S> Send for ContractSpecBuilder<S>
impl<S> Sync for ContractSpecBuilder<S>
impl<S> Unpin for ContractSpecBuilder<S>
impl<S> UnwindSafe for ContractSpecBuilder<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more