pub struct ExecutionInput<Args> { /* private fields */ }
Expand description
The input data for a smart contract execution.
Implementations§
Source§impl ExecutionInput<EmptyArgumentList>
impl ExecutionInput<EmptyArgumentList>
Sourcepub fn push_arg<T>(
self,
arg: T,
) -> ExecutionInput<ArgumentList<Argument<T>, EmptyArgumentList>>where
T: Encode,
pub fn push_arg<T>(
self,
arg: T,
) -> ExecutionInput<ArgumentList<Argument<T>, EmptyArgumentList>>where
T: Encode,
Pushes an argument to the execution input.
Source§impl<Head, Rest> ExecutionInput<ArgumentList<Argument<Head>, Rest>>
impl<Head, Rest> ExecutionInput<ArgumentList<Argument<Head>, Rest>>
Source§impl<Args> ExecutionInput<Args>
impl<Args> ExecutionInput<Args>
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.
Trait Implementations§
Source§impl<Args: Clone> Clone for ExecutionInput<Args>
impl<Args: Clone> Clone for ExecutionInput<Args>
Source§fn clone(&self) -> ExecutionInput<Args>
fn clone(&self) -> ExecutionInput<Args>
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: Debug> Debug for ExecutionInput<Args>
impl<Args: Debug> Debug for ExecutionInput<Args>
Source§impl<Args: Default> Default for ExecutionInput<Args>
impl<Args: Default> Default for ExecutionInput<Args>
Source§fn default() -> ExecutionInput<Args>
fn default() -> ExecutionInput<Args>
Returns the “default value” for a type. Read more
Source§impl<Args> Encode for ExecutionInput<Args>where
Args: Encode,
impl<Args> Encode for ExecutionInput<Args>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.
Source§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.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Auto Trait Implementations§
impl<Args> Freeze for ExecutionInput<Args>where
Args: Freeze,
impl<Args> RefUnwindSafe for ExecutionInput<Args>where
Args: RefUnwindSafe,
impl<Args> Send for ExecutionInput<Args>where
Args: Send,
impl<Args> Sync for ExecutionInput<Args>where
Args: Sync,
impl<Args> Unpin for ExecutionInput<Args>where
Args: Unpin,
impl<Args> UnwindSafe for ExecutionInput<Args>where
Args: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§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 moreSource§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.