Trait MetaAware

Source
pub trait MetaAware: TypeInfo + Debug { }
Expand description

Metadata-aware type that can be described in runtime metadata.

MetaAware ensures external tools (RPC, UI, and off-chain components) can interpret the type layout without native Rust reflection while still supporting lightweight diagnostics.

  • [TypeInfo]: Enables SCALE metadata generation for external consumers.
  • Debug: Allows readable diagnostics during runtime and testing.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> MetaAware for T
where T: TypeInfo + Debug,