pub trait ExtensionName {
// Required method
fn name(&self, version: ZarrVersion) -> Option<Cow<'static, str>>;
// Provided methods
fn name_v3(&self) -> Option<Cow<'static, str>> { ... }
fn name_v2(&self) -> Option<Cow<'static, str>> { ... }
}Expand description
Object-safe trait for getting the name of an extension instance.
This trait provides a way to get the serialization name for an extension
instance for a given Zarr version. The default implementation (via
ExtensionNameStatic) returns the first alias from ExtensionAliases
for that version.
Types can implement this trait manually if they need custom naming behavior.