Skip to main content

RepositoryFileMetadata

Trait RepositoryFileMetadata 

Source
pub trait RepositoryFileMetadata {
    // Required methods
    fn path(&self) -> &str;
    fn size(&self) -> Option<u64>;
}
Expand description

Common repository file metadata exposed by provider APIs

Required Methods§

Source

fn path(&self) -> &str

Return the repository-relative path

Source

fn size(&self) -> Option<u64>

Return the reported file size when available

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§