usecrate::ValidatorError;usestd::path::Path;/// Validates a filesystem path before it is used as a config directory.
////// The reference implementation is [`crate::DefaultValidator`]. Import this trait
/// only when writing generic code that accepts any validator.
pubtraitValidator{/// Returns `Ok(())` when `target` is a valid config directory path, `Err` otherwise.
////// A non-existent path is considered valid (it will be skipped at load time).
/// A path that exists but is not a directory returns [`ValidatorError::Io`].
fnvalidate_path(&self, target:&Path)->Result<(), ValidatorError>;}