pub trait StorageDomain {
const DOMAIN: FramedDomain;
}Expand description
Carries a storage struct’s root domain separator.
Derived by #[storage] / #[derive(Storage)]. DOMAIN defaults to the
struct’s bare identifier and is overridable with #[storage(domain = "…")].
Only consulted when the type is used as a contract-state root
(see [contract_state_root]); nested usage ignores it.
Required Associated Constants§
Sourceconst DOMAIN: FramedDomain
const DOMAIN: FramedDomain
The type’s storage domain, pre-framed at compile time (see
frame_domain); consumed by
[contract_state_root]. Emitted by derive(Storage).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".