Skip to main content

ValidatorOps

Trait ValidatorOps 

Source
pub trait ValidatorOps: Send + Sync {
    // Required method
    fn check_path(&self, target: &Path) -> Result<(), ValidatorError>;
}
Expand description

Type-erased path validation used internally by crate::DefaultValidator.

Required Methods§

Source

fn check_path(&self, target: &Path) -> Result<(), ValidatorError>

Returns Ok(()) when target is a valid config path, Err otherwise.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§