Skip to main content

Validatable

Trait Validatable 

Source
pub trait Validatable {
    // Required method
    fn validate(&self) -> Vec<ConfigError>;

    // Provided method
    fn is_valid(&self) -> bool { ... }
}
Expand description

Trait for validatable configuration types.

Required Methods§

Source

fn validate(&self) -> Vec<ConfigError>

Validate the configuration, returning any errors found.

Provided Methods§

Source

fn is_valid(&self) -> bool

Check if the configuration is valid.

Implementors§