Trait abstract_interface::RegisteredModule

source ·
pub trait RegisteredModule {
    type InitMsg: Serialize;

    // Required methods
    fn module_id<'a>() -> &'a str;
    fn module_version<'a>() -> &'a str;
}
Expand description

Trait to access module information tied directly to the type.

Required Associated Types§

source

type InitMsg: Serialize

The init message for the module.

Required Methods§

source

fn module_id<'a>() -> &'a str

The id of the module.

source

fn module_version<'a>() -> &'a str

The version of the module.

Object Safety§

This trait is not object safe.

Implementors§