Skip to main content

StandardConfig

Trait StandardConfig 

Source
pub trait StandardConfig:
    Debug
    + Clone
    + Default
    + Serialize
    + for<'de> Deserialize<'de> {
    // Provided methods
    fn validate(&self) -> Result<()> { ... }
    fn merge(self, other: Self) -> Self { ... }
}
Expand description

Standard configuration trait

Provided Methods§

Source

fn validate(&self) -> Result<()>

Validate the configuration

Source

fn merge(self, other: Self) -> Self

Merge with another configuration (self takes precedence)

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§