Trait abstract_interface::InstallConfig

source ·
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§

source

fn module_info() -> Result<ModuleInfo, AbstractInterfaceError>

Constructs the ModuleInfo by using information from RegisteredModule.

source

fn install_config( init_msg: &Self::InitMsg ) -> Result<ModuleInstallConfig, AbstractInterfaceError>

Constructs the ModuleInstallConfig for an App Interface

Object Safety§

This trait is not object safe.

Implementors§