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§
Sourcefn validate(&self) -> Vec<ConfigError>
fn validate(&self) -> Vec<ConfigError>
Validate the configuration, returning any errors found.