pub enum ValidationLevel {
Off,
Minimal,
Normal,
Strict,
}
Expand description
Validation strictness levels
Variants§
Off
No validation - allow any options
Minimal
Minimal validation - only check known conflicts
Normal
Normal validation - validate known options, warn on unknown
Strict
Strict validation - reject unknown options
Implementations§
Source§impl ValidationLevel
impl ValidationLevel
Sourcepub fn is_enabled(self) -> bool
pub fn is_enabled(self) -> bool
Check if this level performs validation
Sourcepub fn allows_unknown(self) -> bool
pub fn allows_unknown(self) -> bool
Check if this level allows unknown options
Trait Implementations§
Source§impl Clone for ValidationLevel
impl Clone for ValidationLevel
Source§fn clone(&self) -> ValidationLevel
fn clone(&self) -> ValidationLevel
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 ValidationLevel
impl Debug for ValidationLevel
Source§impl<'de> Deserialize<'de> for ValidationLevel
impl<'de> Deserialize<'de> for ValidationLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidationLevel
impl PartialEq for ValidationLevel
Source§impl Serialize for ValidationLevel
impl Serialize for ValidationLevel
impl Copy for ValidationLevel
impl Eq for ValidationLevel
impl StructuralPartialEq for ValidationLevel
Auto Trait Implementations§
impl Freeze for ValidationLevel
impl RefUnwindSafe for ValidationLevel
impl Send for ValidationLevel
impl Sync for ValidationLevel
impl Unpin for ValidationLevel
impl UnwindSafe for ValidationLevel
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