use cosmwasm_std::{DepsMut, Env, MessageInfo, Response};
use schemars::JsonSchema;
use serde::Serialize;
use crate::base::handler::Handler;
/// Trait for a contract's Execute entry point.
pub trait ExecuteEndpoint: Handler {
/// The message type for the Execute entry point.
type ExecuteMsg: Serialize + JsonSchema;
/// Handler for the Execute endpoint.
fn execute(
self,
deps: DepsMut,
env: Env,
info: MessageInfo,
msg: Self::ExecuteMsg,
) -> Result<Response, Self::Error>;
}