pub enum Strictness {
Strict,
Lax,
}Expand description
Controls parse behavior when malformed data is found.
Variants§
Strict
Return an error on the first hard validation failure.
Lax
Continue parsing when possible and accumulate ParseIssues.
Trait Implementations§
Source§impl Clone for Strictness
impl Clone for Strictness
Source§fn clone(&self) -> Strictness
fn clone(&self) -> Strictness
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 Strictness
impl Debug for Strictness
Source§impl Default for Strictness
impl Default for Strictness
Source§fn default() -> Strictness
fn default() -> Strictness
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Strictness
impl<'de> Deserialize<'de> for Strictness
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 Strictness
impl PartialEq for Strictness
Source§impl Serialize for Strictness
impl Serialize for Strictness
impl Copy for Strictness
impl Eq for Strictness
impl StructuralPartialEq for Strictness
Auto Trait Implementations§
impl Freeze for Strictness
impl RefUnwindSafe for Strictness
impl Send for Strictness
impl Sync for Strictness
impl Unpin for Strictness
impl UnsafeUnpin for Strictness
impl UnwindSafe for Strictness
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