pub struct ValidationOptions {
pub fail_fast: bool,
pub max_issues: usize,
pub apply_attribute_defaults: bool,
}Expand description
Tunables for Schema::validate_str_opts.
Fields§
§fail_fast: boolStop on the first issue. Default true. When false, the
validator collects up to max_issues issues
before returning.
max_issues: usizeCap on collected issues when fail_fast is off. Default 1000.
apply_attribute_defaults: boolAugment the instance with schema-defined attribute value
constraints: when an attribute with a default= / fixed= value
is absent on an element, add it. Only effective when validating a
live Document (the source can then
mutate it); a no-op for string/byte sources. Default false
(mirrors libxml2’s XML_SCHEMA_VAL_VC_I_CREATE opt-in).
Trait Implementations§
Source§impl Clone for ValidationOptions
impl Clone for ValidationOptions
Source§fn clone(&self) -> ValidationOptions
fn clone(&self) -> ValidationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationOptions
impl Debug for ValidationOptions
Source§impl Default for ValidationOptions
impl Default for ValidationOptions
Source§fn default() -> ValidationOptions
fn default() -> ValidationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationOptions
impl RefUnwindSafe for ValidationOptions
impl Send for ValidationOptions
impl Sync for ValidationOptions
impl Unpin for ValidationOptions
impl UnsafeUnpin for ValidationOptions
impl UnwindSafe for ValidationOptions
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