HasRootMetadata

Trait HasRootMetadata 

Source
pub trait HasRootMetadata {
    // Required method
    fn uri(&self) -> &str;

    // Provided methods
    fn name(&self) -> Option<&str> { ... }
    fn description(&self) -> Option<&str> { ... }
}
Expand description

Trait for root metadata (URI, name, path info)

Required Methods§

Source

fn uri(&self) -> &str

The root URI (must start with “file://”)

Provided Methods§

Source

fn name(&self) -> Option<&str>

Optional human-readable name

Source

fn description(&self) -> Option<&str>

Optional description or additional metadata

Implementors§