Trait multiversx_sc_snippets::imports::TxToSpecified

source ·
pub trait TxToSpecified<Env>: TxTo<Env> + AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>>
where Env: TxEnv,
{ // Provided method fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R where F: FnOnce(&ManagedAddress<<Env as TxEnv>::Api>) -> R { ... } }
Expand description

Marks the non-empty recipient of a transaction.

Enforces the recipient to be explicitly specified.

Provided Methods§

source

fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
where F: FnOnce(&ManagedAddress<<Env as TxEnv>::Api>) -> R,

Avoids a clone when performing transfer-execute.

Other than that, does thesame as AnnotatedValue::into_value.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, Env> TxToSpecified<Env> for TestAddress<'a>
where Env: TxEnv,

source§

impl<'a, Env> TxToSpecified<Env> for TestSCAddress<'a>
where Env: TxEnv,

source§

impl<Api> TxToSpecified<TxScEnv<Api>> for ESDTSystemSCAddress
where Api: CallTypeApi,

source§

impl<Api> TxToSpecified<TxScEnv<Api>> for ToCaller

source§

impl<Api> TxToSpecified<TxScEnv<Api>> for ToSelf

source§

impl<Env> TxToSpecified<Env> for &Address
where Env: TxEnv,

source§

impl<Env> TxToSpecified<Env> for &Bech32Address
where Env: TxEnv,

source§

impl<Env> TxToSpecified<Env> for &ManagedAddress<<Env as TxEnv>::Api>
where Env: TxEnv,

source§

impl<Env> TxToSpecified<Env> for Address
where Env: TxEnv,

source§

impl<Env> TxToSpecified<Env> for Bech32Address
where Env: TxEnv,

source§

impl<Env> TxToSpecified<Env> for ManagedAddress<<Env as TxEnv>::Api>
where Env: TxEnv,

source§

impl<P, Env> TxToSpecified<Env> for &ContractInfo<P>
where Env: TxEnv, P: ProxyObjNew,