Trait MigrateEndpoint

Source
pub trait MigrateEndpoint: Handler {
    type MigrateMsg: Serialize + JsonSchema;

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

Trait for a contract’s Migrate entry point.

Required Associated Types§

Source

type MigrateMsg: Serialize + JsonSchema

The message type for the Migrate entry point.

Required Methods§

Source

fn migrate( self, deps: DepsMut<'_>, env: Env, msg: Self::MigrateMsg, ) -> Result<Response, Self::Error>

Handler for the Migrate 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§