pub struct ExecutionInput<Args, Abi> { /* private fields */ }
Expand description
The input data for a smart contract execution.
Implementations§
Source§impl<Abi> ExecutionInput<EmptyArgumentList<Abi>, Abi>
impl<Abi> ExecutionInput<EmptyArgumentList<Abi>, Abi>
Source§impl ExecutionInput<EmptyArgumentList<Sol>, Sol>
impl ExecutionInput<EmptyArgumentList<Sol>, Sol>
Sourcepub fn no_selector() -> Self
pub fn no_selector() -> Self
Creates a new execution input with no selector.
§Note
Should only be used for Solidity ABI encoded constructors/instantiation.
Source§impl<Abi> ExecutionInput<EmptyArgumentList<Abi>, Abi>
impl<Abi> ExecutionInput<EmptyArgumentList<Abi>, Abi>
Sourcepub fn push_arg<T>(
self,
arg: T,
) -> ExecutionInput<ArgumentList<Argument<T>, EmptyArgumentList<Abi>, Abi>, Abi>where
T: AbiEncodeWith<Abi>,
pub fn push_arg<T>(
self,
arg: T,
) -> ExecutionInput<ArgumentList<Argument<T>, EmptyArgumentList<Abi>, Abi>, Abi>where
T: AbiEncodeWith<Abi>,
Pushes an argument to the execution input.
Source§impl<Head, Rest, Abi> ExecutionInput<ArgumentList<Argument<Head>, Rest, Abi>, Abi>
impl<Head, Rest, Abi> ExecutionInput<ArgumentList<Argument<Head>, Rest, Abi>, Abi>
Sourcepub fn push_arg<T>(
self,
arg: T,
) -> ExecutionInput<ArgsList<T, ArgsList<Head, Rest, Abi>, Abi>, Abi>where
T: AbiEncodeWith<Abi>,
pub fn push_arg<T>(
self,
arg: T,
) -> ExecutionInput<ArgsList<T, ArgsList<Head, Rest, Abi>, Abi>, Abi>where
T: AbiEncodeWith<Abi>,
Pushes an argument to the execution input.
Source§impl<Args, Abi> ExecutionInput<Args, Abi>
impl<Args, Abi> ExecutionInput<Args, Abi>
Sourcepub fn update_selector(&mut self, selector: Selector)
pub fn update_selector(&mut self, selector: Selector)
Modify the selector.
Useful when using the ExecutionInput
generated as part of the
ContractRef
, but using a custom selector.
Source§impl<Args, Abi> ExecutionInput<Args, Abi>where
Args: AbiEncodeWith<Abi>,
impl<Args, Abi> ExecutionInput<Args, Abi>where
Args: AbiEncodeWith<Abi>,
Trait Implementations§
Source§impl<Args: Clone, Abi: Clone> Clone for ExecutionInput<Args, Abi>
impl<Args: Clone, Abi: Clone> Clone for ExecutionInput<Args, Abi>
Source§fn clone(&self) -> ExecutionInput<Args, Abi>
fn clone(&self) -> ExecutionInput<Args, Abi>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Args: Default, Abi: Default> Default for ExecutionInput<Args, Abi>
impl<Args: Default, Abi: Default> Default for ExecutionInput<Args, Abi>
Source§fn default() -> ExecutionInput<Args, Abi>
fn default() -> ExecutionInput<Args, Abi>
Returns the “default value” for a type. Read more
Source§impl<Args> Encode for ExecutionInput<Args, Ink>where
Args: Encode,
impl<Args> Encode for ExecutionInput<Args, Ink>where
Args: Encode,
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<O: Output + ?Sized>(&self, output: &mut O)
fn encode_to<O: Output + ?Sized>(&self, output: &mut O)
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Auto Trait Implementations§
impl<Args, Abi> Freeze for ExecutionInput<Args, Abi>where
Args: Freeze,
impl<Args, Abi> RefUnwindSafe for ExecutionInput<Args, Abi>where
Args: RefUnwindSafe,
Abi: RefUnwindSafe,
impl<Args, Abi> Send for ExecutionInput<Args, Abi>
impl<Args, Abi> Sync for ExecutionInput<Args, Abi>
impl<Args, Abi> Unpin for ExecutionInput<Args, Abi>
impl<Args, Abi> UnwindSafe for ExecutionInput<Args, Abi>where
Args: UnwindSafe,
Abi: UnwindSafe,
Blanket Implementations§
§impl<T> AbiEncodeWith<Ink> for Twhere
T: Encode,
impl<T> AbiEncodeWith<Ink> for Twhere
T: Encode,
§fn encode_with(&self) -> Vec<u8> ⓘ
fn encode_with(&self) -> Vec<u8> ⓘ
Encodes the data into a new vector.
§fn encode_to_slice(&self, buffer: &mut [u8]) -> usize
fn encode_to_slice(&self, buffer: &mut [u8]) -> usize
Encodes the data into a fixed-size buffer, returning the number of bytes written.
§fn encode_to_vec(&self, buffer: &mut Vec<u8>)
fn encode_to_vec(&self, buffer: &mut Vec<u8>)
Encodes the data into a dynamically resizing vector.
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> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, U> DefensiveTruncateInto<U> for Twhere
U: DefensiveTruncateFrom<T>,
impl<T, U> DefensiveTruncateInto<U> for Twhere
U: DefensiveTruncateFrom<T>,
§fn defensive_truncate_into(self) -> U
fn defensive_truncate_into(self) -> U
Defensively truncate a value and convert it into its bounded form.
§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<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§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<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§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
.