ConfigPath

Trait ConfigPath 

Source
pub trait ConfigPath<T: AsRef<Path>> {
    // Required method
    fn config_path(&self) -> Option<T>;
}
Expand description

Implement this trait if you want to indicate that your structure can optionally contain a configuration path.

Required Methods§

Source

fn config_path(&self) -> Option<T>

Obtain a configuration path from self. Ideally you only want to consider things like &str but there can be other valid implementations.

Implementors§