pub struct Validator { /* private fields */ }Expand description
Validation facade for parser, profile selection, traversal, and reports.
Implementations§
Source§impl Validator
impl Validator
Sourcepub fn new(options: ValidationOptions) -> Result<Self>
pub fn new(options: ValidationOptions) -> Result<Self>
Sourcepub fn with_profiles(
options: ValidationOptions,
profiles: Arc<dyn ProfileRepository + Send + Sync>,
) -> Result<Self>
pub fn with_profiles( options: ValidationOptions, profiles: Arc<dyn ProfileRepository + Send + Sync>, ) -> Result<Self>
Sourcepub fn validate_path(&self, path: impl AsRef<Path>) -> Result<ValidationReport>
pub fn validate_path(&self, path: impl AsRef<Path>) -> Result<ValidationReport>
Sourcepub fn validate_reader<R: Read + Seek>(
&self,
source: R,
name: InputName,
) -> Result<ValidationReport>
pub fn validate_reader<R: Read + Seek>( &self, source: R, name: InputName, ) -> Result<ValidationReport>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Validator
impl !RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnsafeUnpin for Validator
impl !UnwindSafe for Validator
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