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§
sourcefn module_prefix() -> &'static [u8] ⓘ
fn module_prefix() -> &'static [u8] ⓘ
Module prefix. Used for generating final key.
sourcefn storage_prefix() -> &'static [u8] ⓘ
fn storage_prefix() -> &'static [u8] ⓘ
Storage prefix. Used for generating final key.
Provided Methods§
sourcefn final_prefix() -> [u8; 32]
fn final_prefix() -> [u8; 32]
Final full prefix that prefixes all keys.