Trait ConfigTrait

Source
pub trait ConfigTrait:
    DeserializeOwned
    + Serialize
    + Sized {
    type Previous: ConfigTrait + Into<Self>;

    // Required method
    fn targets(&self) -> Vec<Target>;

    // Provided methods
    fn new(filename: &Path) -> Result<(Self, ConfigState), Error> { ... }
    fn save(&self, path: &Path) -> Result<(), Error> { ... }
}

Required Associated Types§

Required Methods§

Source

fn targets(&self) -> Vec<Target>

Provided Methods§

Source

fn new(filename: &Path) -> Result<(Self, ConfigState), Error>

Source

fn save(&self, path: &Path) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§