pub trait StoragePrefixedContainer {
    // Required methods
    fn pallet_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 pallet_prefix() -> &'static [u8]

Pallet 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.

Object Safety§

This trait is not object safe.

Implementors§