Struct ink_env::call::ExecutionInput
source · 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: 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) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> 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