#[non_exhaustive]pub enum ExtractError {
Unknown,
Missing,
Duplicate,
Invalid(&'static str),
WrongKind,
}Expand description
Why typed extraction failed.
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.
Unknown
A name the struct neither declares nor ignores.
Missing
A required field is absent.
Duplicate
A single-valued field was given twice.
Invalid(&'static str)
A value that does not convert; the text says why.
WrongKind
A file where text was expected, or the reverse.
Trait Implementations§
Source§impl Clone for ExtractError
impl Clone for ExtractError
impl Copy for ExtractError
Source§impl Debug for ExtractError
impl Debug for ExtractError
impl Eq for ExtractError
Source§impl PartialEq for ExtractError
impl PartialEq for ExtractError
impl StructuralPartialEq for ExtractError
Auto Trait Implementations§
impl Freeze for ExtractError
impl RefUnwindSafe for ExtractError
impl Send for ExtractError
impl Sync for ExtractError
impl Unpin for ExtractError
impl UnsafeUnpin for ExtractError
impl UnwindSafe for ExtractError
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