Skip to main content

InstallConfig

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§