Skip to main content

Validate

Trait Validate 

Source
pub trait Validate<T> {
    // Required method
    fn run(&self, name: &str, options: &T) -> Result;
}
Expand description

Validates options.

Required Methods§

Source

fn run(&self, name: &str, options: &T) -> Result

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§

Source§

impl<F: Fn(&str, &T) -> Result + Sized, T> Validate<T> for F