Enum ValidationErrorKind
#[non_exhaustive]pub enum ValidationErrorKind {
DuplicateField,
DuplicateMember,
DuplicateVariant,
EmptyEnum,
NoMembers,
NotAType,
UnknownType,
}Expand description
The rule a ValidationError is about, without the names involved.
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.
DuplicateField
A field name occurs more than once in a struct.
DuplicateMember
A declaration name occurs more than once in the interface.
DuplicateVariant
A variant name occurs more than once in an enum.
EmptyEnum
An enum has no variants.
NoMembers
The interface declares nothing.
NotAType
A type refers to a method or an error.
UnknownType
A type refers to a name that the interface doesn’t declare.
Trait Implementations§
§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
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 moreimpl Copy for ValidationErrorKind
§impl Debug for ValidationErrorKind
impl Debug for ValidationErrorKind
§impl Display for ValidationErrorKind
impl Display for ValidationErrorKind
impl Eq for ValidationErrorKind
§impl PartialEq for ValidationErrorKind
impl PartialEq for ValidationErrorKind
impl StructuralPartialEq for ValidationErrorKind
Auto Trait Implementations§
impl Freeze for ValidationErrorKind
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnsafeUnpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
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