pub trait ValidateOptions<T> {
    // Required method
    fn validate(&self, name: Option<&str>, options: &T) -> ValidateOptionsResult;
}
Expand description

Defines the behavior of an object that validates configuration options.

Required Methods§

source

fn validate(&self, name: Option<&str>, options: &T) -> ValidateOptionsResult

Validates named options or all options if no name is specified.

Arguments
  • name - The optional name of the options to validate
  • options - The options to validate

Implementors§