pub struct DefaultValidator {
pub ops: Box<dyn ValidatorOps>,
}Expand description
Reference Validator implementation: a generic dispatch shell over any real
ValidatorOps implementor.
Doesn’t care what’s boxed inside – the real, filesystem-backed implementor
(configbuilder-svc-validator-spi) is constructed by
configbuilder-svc-saf and boxed here.
Fields§
§ops: Box<dyn ValidatorOps>The real ValidatorOps implementor this validator dispatches to.
Implementations§
Source§impl DefaultValidator
impl DefaultValidator
Sourcepub fn validate_path(&self, target: &Path) -> Result<(), ConfigError>
pub fn validate_path(&self, target: &Path) -> Result<(), ConfigError>
Validate a filesystem path using the configured validator, returning
configbuilder_pattern_loader::ConfigError directly for callers already
working in that error type (e.g. configbuilder-svc-saf’s
composition root). External consumers should prefer the Validator trait
impl below, which returns ValidatorError.
Trait Implementations§
Source§impl Validator for DefaultValidator
impl Validator for DefaultValidator
Source§fn validate_path(&self, target: &Path) -> Result<(), ValidatorError>
fn validate_path(&self, target: &Path) -> Result<(), ValidatorError>
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultValidator
impl !UnwindSafe for DefaultValidator
impl Forget for DefaultValidator
impl Freeze for DefaultValidator
impl Send for DefaultValidator
impl Sync for DefaultValidator
impl Unpin for DefaultValidator
impl UnsafeUnpin for DefaultValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more