pub trait AbstractExecute: Sized {
    type RequestMsg: Serialize;
    type ExecuteMsg<T>: Serialize;
    type ContractError: From<StdError>;

    fn execute(
        self,
        deps: DepsMut<'_>,
        env: Env,
        info: MessageInfo,
        msg: Self::ExecuteMsg<Self::RequestMsg>,
        request_handler: impl FnOnce(DepsMut<'_>, Env, MessageInfo, Self, Self::RequestMsg) -> Result<Response, Self::ContractError>
    ) -> Result<Response, Self::ContractError>; }

Required Associated Types

Required Methods

Takes request, sets destination and executes request handler This fn is the only way to get an ApiContract instance which ensures the destination address is set correctly.

Implementors