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<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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.