#[non_exhaustive]pub enum ValueError {
Missing,
Duplicate,
Invalid(&'static str),
ExpectedFile,
ExpectedText,
}Available on crate feature
alloc only.Expand description
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.
Missing
A required field is absent.
Duplicate
A single-valued field was given twice.
Invalid(&'static str)
The value does not convert; the text says why.
ExpectedFile
Text was given to a file field.
ExpectedText
A file was given to a text field.
Trait Implementations§
Source§impl Clone for ValueError
impl Clone for ValueError
impl Copy for ValueError
Source§impl Debug for ValueError
impl Debug for ValueError
impl Eq for ValueError
Source§impl PartialEq for ValueError
impl PartialEq for ValueError
impl StructuralPartialEq for ValueError
Auto Trait Implementations§
impl Freeze for ValueError
impl RefUnwindSafe for ValueError
impl Send for ValueError
impl Sync for ValueError
impl Unpin for ValueError
impl UnsafeUnpin for ValueError
impl UnwindSafe for ValueError
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