#[non_exhaustive]pub enum ValueErrorKind {
Length {
min: usize,
max: usize,
actual: usize,
},
Pattern {
expected: &'static str,
},
Char {
index: usize,
codepoint: u32,
},
Sequence {
max: u64,
},
XmlChar {
index: usize,
codepoint: u32,
},
}Expand description
The facet a ValueError reports.
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.
Length
Too short or too long, counted in characters as XSD does.
Pattern
The value does not have the required shape.
Char
A character outside the WBCI character set.
Sequence
A sequence number too large for nine digits.
XmlChar
A character that XML text may not carry (a control character other than tab, line feed and carriage return, or a non-character).
Trait Implementations§
Source§impl Clone for ValueErrorKind
impl Clone for ValueErrorKind
Source§impl Debug for ValueErrorKind
impl Debug for ValueErrorKind
Source§impl Display for ValueErrorKind
impl Display for ValueErrorKind
impl Eq for ValueErrorKind
Source§impl PartialEq for ValueErrorKind
impl PartialEq for ValueErrorKind
impl StructuralPartialEq for ValueErrorKind
Auto Trait Implementations§
impl Forget for ValueErrorKind
impl Freeze for ValueErrorKind
impl Move for ValueErrorKind
impl RefUnwindSafe for ValueErrorKind
impl Send for ValueErrorKind
impl Sync for ValueErrorKind
impl Unpin for ValueErrorKind
impl UnsafeUnpin for ValueErrorKind
impl UnwindSafe for ValueErrorKind
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