#[non_exhaustive]pub enum SkipReason {
InvalidJson {
column: usize,
message: String,
},
MissingField {
field: String,
},
WrongType {
field: String,
kind: String,
},
NonNumericScore {
path: String,
value_summary: String,
},
}Expand description
Reason a single input record was skipped during processing.
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.
InvalidJson
The record could not be parsed as JSON.
MissingField
The record parsed but a required field was missing.
WrongType
The record had a value at the field path but the value’s JSON
kind was not usable for the strategy at hand. Distinct from
SkipReason::MissingField — the field is present, just the
wrong shape (e.g. an array where the strategy expects a scalar
key).
Fields
NonNumericScore
The record had a value at the score path but it was not numeric.
Trait Implementations§
Source§impl Clone for SkipReason
impl Clone for SkipReason
Source§fn clone(&self) -> SkipReason
fn clone(&self) -> SkipReason
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 moreAuto Trait Implementations§
impl Freeze for SkipReason
impl RefUnwindSafe for SkipReason
impl Send for SkipReason
impl Sync for SkipReason
impl Unpin for SkipReason
impl UnsafeUnpin for SkipReason
impl UnwindSafe for SkipReason
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