vstorage::vdir

Trait PropertyWithFilename

source
pub trait PropertyWithFilename: 'static {
    // Required methods
    fn filename(&self) -> &'static str;
    fn known_properties() -> &'static [Self]
       where Self: Sized;
}
Expand description

Helper to synchronise collection properties into filesystem.

This trait should only be required when implementing a new Item type that should work with the existing VdirStorage implementation.

In order for the Item’s properties to synchronise to the filesystem, it should implement this trait.

Required Methods§

source

fn filename(&self) -> &'static str

source

fn known_properties() -> &'static [Self]
where Self: Sized,

Implementors§