#[non_exhaustive]pub enum ValidationErrorKind {
Syntax,
TooLarge,
MissingSchemaVersion,
UnsupportedSchemaVersion,
UnknownKey,
WrongType,
OutOfRange,
InvalidValue,
Conflict,
}Expand description
The category of a ValidationError.
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.
Syntax
The text is not valid TOML. The message gives only the line and column, never the parser’s description, which can quote the input.
TooLarge
The text is longer than MAX_DOCUMENT_BYTES
and was not parsed.
MissingSchemaVersion
The document has no schema_version key.
UnsupportedSchemaVersion
schema_version names a version this library does not implement.
UnknownKey
A key or table that the schema does not define.
WrongType
A value of the wrong TOML type, or a section that is not a table.
OutOfRange
An integer outside its field’s range.
InvalidValue
A value of the right type that breaks its field’s rule.
Conflict
Two individually valid fields that conflict with each other.
Trait Implementations§
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
impl Copy for ValidationErrorKind
Source§impl Debug for ValidationErrorKind
impl Debug for ValidationErrorKind
impl Eq for ValidationErrorKind
Source§impl Hash for ValidationErrorKind
impl Hash for ValidationErrorKind
Source§impl PartialEq for ValidationErrorKind
impl PartialEq for ValidationErrorKind
Source§impl Serialize for ValidationErrorKind
impl Serialize for ValidationErrorKind
impl StructuralPartialEq for ValidationErrorKind
Auto Trait Implementations§
impl Forget for ValidationErrorKind
impl Freeze for ValidationErrorKind
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.