pub struct ValidationEngineConfig {
pub fail_fast: bool,
pub warnings_as_errors: bool,
pub max_rules_per_schema: usize,
}Expand description
Configuration for the validation engine
Fields§
§fail_fast: boolWhether to fail fast on first error
warnings_as_errors: boolWhether warnings should block registration
max_rules_per_schema: usizeMaximum number of rules to evaluate per schema
Implementations§
Source§impl ValidationEngineConfig
impl ValidationEngineConfig
pub fn new() -> Self
pub fn with_fail_fast(self, fail_fast: bool) -> Self
pub fn with_warnings_as_errors(self, warnings_as_errors: bool) -> Self
Trait Implementations§
Source§impl Clone for ValidationEngineConfig
impl Clone for ValidationEngineConfig
Source§fn clone(&self) -> ValidationEngineConfig
fn clone(&self) -> ValidationEngineConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationEngineConfig
impl Debug for ValidationEngineConfig
Auto Trait Implementations§
impl Freeze for ValidationEngineConfig
impl RefUnwindSafe for ValidationEngineConfig
impl Send for ValidationEngineConfig
impl Sync for ValidationEngineConfig
impl Unpin for ValidationEngineConfig
impl UnwindSafe for ValidationEngineConfig
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