Configured

Trait Configured 

Source
pub trait Configured: Sized {
    // Required method
    fn load() -> Result<Self, Error>;
}
Expand description

Use (import) this trait and all types that implement Deserialize are extended with the load associated function.

Required Methods§

Source

fn load() -> Result<Self, Error>

Load this configuration.

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§

Source§

impl<'de, T> Configured for T
where T: Deserialize<'de>,