Macro pendzl::storage_unique_key
source · macro_rules! storage_unique_key { ($struct:ident) => { ... }; ($struct:literal, $field:literal) => { ... }; }
Expand description
Return the hash of the format!(“{}::{}”, ::core::module_path!(), struct_name). Also, if field naming is provided, it will return the hash of the format!(“{}::{}::{}”, ::core::module_path!(), struct_name, field_name). It cam be used to generate unique storage key of the struct.