pub trait Metadata: Sized {
type Error;
// Required methods
fn extract(store: &MetadataStore) -> Result<Self, Self::Error>;
fn inject(&self, map: &mut MetadataStore) -> Result<(), Self::Error>;
}Expand description
Implemented by types that can be stored as metadata. Provides a stable key and string-based serialization.
Required Associated Types§
Required Methods§
Sourcefn extract(store: &MetadataStore) -> Result<Self, Self::Error>
fn extract(store: &MetadataStore) -> Result<Self, Self::Error>
Extract Metadata from the store
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".