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 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.
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