pub trait StoragePrefixedContainer {
    // Required methods
    fn module_prefix() -> &'static [u8] ;
    fn storage_prefix() -> &'static [u8] ;

    // Provided method
    fn final_prefix() -> [u8; 32] { ... }
}
Expand description

Trait for storage types that store all its value after a unique prefix.

Required Methods§

source

fn module_prefix() -> &'static [u8]

Module prefix. Used for generating final key.

source

fn storage_prefix() -> &'static [u8]

Storage prefix. Used for generating final key.

Provided Methods§

source

fn final_prefix() -> [u8; 32]

Final full prefix that prefixes all keys.

Implementors§