pub struct ValidateRequest<'a> { /* private fields */ }Expand description
Explicit inputs for one filesystem-aware validation operation.
Implementations§
Source§impl<'a> ValidateRequest<'a>
impl<'a> ValidateRequest<'a>
Sourcepub const fn path(root: &'a Path, input: &'a Path) -> Self
pub const fn path(root: &'a Path, input: &'a Path) -> Self
Validate one .norm file, or the .norm inside one directory.
A relative input is resolved from root.
Sourcepub const fn all(root: &'a Path) -> Self
pub const fn all(root: &'a Path) -> Self
Recursively validate every regular .norm file below root.
Sourcepub const fn schema_dir(self, path: &'a Path) -> Self
pub const fn schema_dir(self, path: &'a Path) -> Self
Use an explicit Schema bundle directory instead of packaged schemas.
A relative path is resolved from the validation root.
Sourcepub const fn profile(self, profile: &'a str) -> Self
pub const fn profile(self, profile: &'a str) -> Self
Override metadata-based profile selection.
Sourcepub const fn legacy_format(self, enabled: bool) -> Self
pub const fn legacy_format(self, enabled: bool) -> Self
Enable or disable the explicitly supported pre-A1 input format.
Sourcepub const fn compat_keys(self, enabled: bool) -> Self
pub const fn compat_keys(self, enabled: bool) -> Self
Downgrade unknown top-level fields to compatibility warnings.
Trait Implementations§
Source§impl<'a> Clone for ValidateRequest<'a>
impl<'a> Clone for ValidateRequest<'a>
impl<'a> Copy for ValidateRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for ValidateRequest<'a>
impl<'a> RefUnwindSafe for ValidateRequest<'a>
impl<'a> Send for ValidateRequest<'a>
impl<'a> Sync for ValidateRequest<'a>
impl<'a> Unpin for ValidateRequest<'a>
impl<'a> UnsafeUnpin for ValidateRequest<'a>
impl<'a> UnwindSafe for ValidateRequest<'a>
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