#[non_exhaustive]pub enum FieldErrorKind {
Duplicate {
first: usize,
},
Missing,
Invalid(FieldValueError),
Forbidden,
Unknown,
}Expand description
The kind of FieldError.
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.
Duplicate
A singleton field appeared again.
Missing
A required field is absent.
Invalid(FieldValueError)
A value is invalid, and the field treats an invalid value as an error.
Forbidden
The section forbids this field.
Unknown
The section rejects fields it neither declares nor forbids.
Trait Implementations§
Source§impl Clone for FieldErrorKind
impl Clone for FieldErrorKind
impl Copy for FieldErrorKind
Source§impl Debug for FieldErrorKind
impl Debug for FieldErrorKind
impl Eq for FieldErrorKind
Source§impl Hash for FieldErrorKind
impl Hash for FieldErrorKind
Source§impl PartialEq for FieldErrorKind
impl PartialEq for FieldErrorKind
impl StructuralPartialEq for FieldErrorKind
Auto Trait Implementations§
impl Forget for FieldErrorKind
impl Freeze for FieldErrorKind
impl RefUnwindSafe for FieldErrorKind
impl Send for FieldErrorKind
impl Sync for FieldErrorKind
impl Unpin for FieldErrorKind
impl UnsafeUnpin for FieldErrorKind
impl UnwindSafe for FieldErrorKind
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