#[non_exhaustive]pub enum ValueErrorKind {
Guid,
Language,
Rational,
Decimal,
PositiveInteger,
EmptyReference,
CreationDate,
Uri,
NonNegativeInteger,
Base64Binary,
}Expand description
Lexical contracts checked by ValueError.
Non-exhaustive: new ISO 23387 lexical contracts are added as the owned model grows, and matching code must keep a wildcard arm.
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.
Guid
ISO 23387 GuidType.
Language
XML Schema language.
Rational
ISO 23387 RationalType.
Decimal
XML Schema decimal.
PositiveInteger
XML Schema positiveInteger.
EmptyReference
A semantically identified reference with neither GUID nor URI.
CreationDate
XML Schema dateTime.
Uri
XML Schema anyURI.
NonNegativeInteger
XML Schema nonNegativeInteger.
Base64Binary
XML Schema base64Binary.
Trait Implementations§
Source§impl Clone for ValueErrorKind
impl Clone for ValueErrorKind
Source§fn clone(&self) -> ValueErrorKind
fn clone(&self) -> ValueErrorKind
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 ValueErrorKind
Source§impl Debug for ValueErrorKind
impl Debug for ValueErrorKind
impl Eq for ValueErrorKind
Source§impl Hash for ValueErrorKind
impl Hash for ValueErrorKind
Source§impl PartialEq for ValueErrorKind
impl PartialEq for ValueErrorKind
impl StructuralPartialEq for ValueErrorKind
Auto Trait Implementations§
impl Freeze 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