Trait abstract_sdk::base::InstantiateEndpoint
source · pub trait InstantiateEndpoint: Handler {
type InstantiateMsg: Serialize + JsonSchema;
// Required method
fn instantiate(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Self::InstantiateMsg,
) -> Result<Response, Self::Error>;
}
Expand description
Trait for a contract’s Instantiate entry point.
Required Associated Types§
sourcetype InstantiateMsg: Serialize + JsonSchema
type InstantiateMsg: Serialize + JsonSchema
The message type for the Instantiate entry point.
Required Methods§
sourcefn instantiate(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Self::InstantiateMsg,
) -> Result<Response, Self::Error>
fn instantiate( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: Self::InstantiateMsg, ) -> Result<Response, Self::Error>
Handler for the Instantiate endpoint.
Object Safety§
This trait is not object safe.