Trait ExecuteEndpoint

Source
pub trait ExecuteEndpoint: Handler {
    type ExecuteMsg: Serialize + JsonSchema;

    // Required method
    fn execute(
        self,
        deps: DepsMut<'_>,
        env: Env,
        info: MessageInfo,
        msg: Self::ExecuteMsg,
    ) -> Result<Response, Self::Error>;
}
Expand description

Trait for a contract’s Execute entry point.

Required Associated Types§

Source

type ExecuteMsg: Serialize + JsonSchema

The message type for the Execute entry point.

Required Methods§

Source

fn execute( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: Self::ExecuteMsg, ) -> Result<Response, Self::Error>

Handler for the Execute endpoint.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§