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§
Sourcetype MigrateMsg: Serialize + JsonSchema
type MigrateMsg: Serialize + JsonSchema
The message type for the Migrate entry point.
Required Methods§
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.