#[non_exhaustive]pub enum ValidationCode {
SetNameMismatch,
DuplicateMember,
UnexpectedMember,
MissingMember,
FormMismatch,
DataTypeMismatch,
InvalidEnumerationValue,
}Expand description
Category of one ValidationIssue, identifying which check produced it.
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.
SetNameMismatch
The observed set’s name does not match the template’s name.
DuplicateMember
The same member name appeared more than once in the observed set.
UnexpectedMember
An observed member is not declared by the template; see UnexpectedMemberPolicy.
MissingMember
A template-declared member is absent from the observed set, under
ValidationPolicy::require_all_members.
FormMismatch
The observed member’s MemberForm does not match the template’s.
DataTypeMismatch
The observed member’s data type(s) do not match the template’s.
InvalidEnumerationValue
The observed enumeration value is not among the template’s declared values.
Trait Implementations§
Source§impl Clone for ValidationCode
impl Clone for ValidationCode
Source§fn clone(&self) -> ValidationCode
fn clone(&self) -> ValidationCode
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 ValidationCode
Source§impl Debug for ValidationCode
impl Debug for ValidationCode
impl Eq for ValidationCode
Source§impl PartialEq for ValidationCode
impl PartialEq for ValidationCode
impl StructuralPartialEq for ValidationCode
Auto Trait Implementations§
impl Freeze for ValidationCode
impl RefUnwindSafe for ValidationCode
impl Send for ValidationCode
impl Sync for ValidationCode
impl Unpin for ValidationCode
impl UnsafeUnpin for ValidationCode
impl UnwindSafe for ValidationCode
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