pub trait InstallConfig: RegisteredModule {
// Provided methods
fn module_info() -> Result<ModuleInfo, AbstractInterfaceError> { ... }
fn install_config(
init_msg: &Self::InitMsg,
) -> Result<ModuleInstallConfig, AbstractInterfaceError> { ... }
}Expand description
Trait to make it easier to construct ModuleInfo and ModuleInstallConfig for a
RegisteredModule.
Provided Methods§
Sourcefn module_info() -> Result<ModuleInfo, AbstractInterfaceError>
fn module_info() -> Result<ModuleInfo, AbstractInterfaceError>
Constructs the ModuleInfo by using information from RegisteredModule.
Sourcefn install_config(
init_msg: &Self::InitMsg,
) -> Result<ModuleInstallConfig, AbstractInterfaceError>
fn install_config( init_msg: &Self::InitMsg, ) -> Result<ModuleInstallConfig, AbstractInterfaceError>
Constructs the ModuleInstallConfig for an App Interface
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.