pub trait MetadataKind: Clone + Debug {
type MetadataType: Sized;
// Required methods
fn new(metadata: Self::MetadataType) -> Self;
fn materialize(path: &Utf8Path) -> Result<Self, MetadataMaterializeError>;
}
Expand description
Type parameter for MetadataWithRemap
.
Required Associated Types§
sourcetype MetadataType: Sized
type MetadataType: Sized
The type of metadata stored.
Required Methods§
sourcefn new(metadata: Self::MetadataType) -> Self
fn new(metadata: Self::MetadataType) -> Self
Constructs a new MetadataKind
from the given metadata.
sourcefn materialize(path: &Utf8Path) -> Result<Self, MetadataMaterializeError>
fn materialize(path: &Utf8Path) -> Result<Self, MetadataMaterializeError>
Reads a path, resolving it into this data type.
Object Safety§
This trait is not object safe.