#[non_exhaustive]pub enum RepairKind {
NumericString,
DateTimeWithoutOffset,
DateTimeWithSpace,
WholeFloat,
UnknownEnumValue,
}Expand description
The kinds of non-conformance leniency forgives.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NumericString
A number sent as a JSON string ("42"), coerced (NumericStrings::Coerce).
DateTimeWithoutOffset
A dateTime without a UTC offset, read as UTC (DateTimeLeniency::AllowNaive).
DateTimeWithSpace
A dateTime with a space instead of T (DateTimeLeniency::AllowSpace).
WholeFloat
20000.0 where a draft-04 schema says integer (WholeFloats::Coerce).
UnknownEnumValue
An enumeration value the schema does not define, kept in UnknownValue
(UnknownEnumValues::Preserve).
Implementations§
Trait Implementations§
Source§impl Clone for RepairKind
impl Clone for RepairKind
impl Copy for RepairKind
Source§impl Debug for RepairKind
impl Debug for RepairKind
Source§impl Display for RepairKind
impl Display for RepairKind
impl Eq for RepairKind
Source§impl Hash for RepairKind
impl Hash for RepairKind
Source§impl Ord for RepairKind
impl Ord for RepairKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RepairKind
impl PartialEq for RepairKind
Source§impl PartialOrd for RepairKind
impl PartialOrd for RepairKind
impl StructuralPartialEq for RepairKind
Auto Trait Implementations§
impl Forget for RepairKind
impl Freeze for RepairKind
impl RefUnwindSafe for RepairKind
impl Send for RepairKind
impl Sync for RepairKind
impl Unpin for RepairKind
impl UnsafeUnpin for RepairKind
impl UnwindSafe for RepairKind
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