pub struct ValidateOptions<'a> { /* private fields */ }Expand description
Options of one validation.
Implementations§
Source§impl<'a> ValidateOptions<'a>
impl<'a> ValidateOptions<'a>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
The default options: the document has no URI, and the clock is the system clock in UTC.
Sourcepub const fn clock(self, clock: Clock) -> Self
pub const fn clock(self, clock: Clock) -> Self
The clock of the stylesheets: the implicit timezone and the value of
fn:current-dateTime() (read once per validation, as the reference engine reads
it once per transformation). By default, the system clock in UTC; required on
targets without a system clock, such as wasm32-unknown-unknown, where
validating without it fails with Error::Unsupported.
Sourcepub const fn document_uri(self, uri: &'a str) -> Self
pub const fn document_uri(self, uri: &'a str) -> Self
The URI of the document: what document-uri(/) returns in the stylesheets, and
what the SVRL report states in svrl:active-pattern/@documents. For a file,
file_uri gives the URI the reference engine uses.
Trait Implementations§
Source§impl<'a> Clone for ValidateOptions<'a>
impl<'a> Clone for ValidateOptions<'a>
impl<'a> Copy for ValidateOptions<'a>
Source§impl<'a> Debug for ValidateOptions<'a>
impl<'a> Debug for ValidateOptions<'a>
Auto Trait Implementations§
impl<'a> Forget for ValidateOptions<'a>
impl<'a> Freeze for ValidateOptions<'a>
impl<'a> RefUnwindSafe for ValidateOptions<'a>
impl<'a> Send for ValidateOptions<'a>
impl<'a> Sync for ValidateOptions<'a>
impl<'a> Unpin for ValidateOptions<'a>
impl<'a> UnsafeUnpin for ValidateOptions<'a>
impl<'a> UnwindSafe for ValidateOptions<'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