pub trait TokenManagerInterface: OwnableInterface + UpgradableInterface {
// Required method
fn execute(
env: &Env,
contract: Address,
func: Symbol,
args: Vec<Val>,
) -> Result<Val, ContractError>;
}Required Methods§
Sourcefn execute(
env: &Env,
contract: Address,
func: Symbol,
args: Vec<Val>,
) -> Result<Val, ContractError>
fn execute( env: &Env, contract: Address, func: Symbol, args: Vec<Val>, ) -> Result<Val, ContractError>
Executes a function on the given contract.
§Arguments
contract- The address of the contract to execute the function on.func- The symbol of the function to execute.args- The arguments to pass to the function.
§Returns
Ok(Val)- The result of the function execution.
§Authorization
OwnableInterface::ownermust have authorized.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".