Trait StoreMetadata

Source
pub trait StoreMetadata {
    // Required methods
    fn size(&self) -> u64;
    fn created(&self) -> u64;
    fn modified(&self) -> u64;

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

Trait representing the metadata of a file.

Required Methods§

Source

fn size(&self) -> u64

Returns the size of the file in bytes.

Source

fn created(&self) -> u64

Returns the creation timestamp of the file (epoch time).

Source

fn modified(&self) -> u64

Returns the last modification timestamp of the file (epoch time).

Provided Methods§

Source

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

Returns the content type of the file

Implementors§