#[non_exhaustive]pub enum ViewError {
Missing {
path: String,
field: Option<String>,
},
UnexpectedType {
path: String,
field: Option<String>,
expected: &'static str,
actual: &'static str,
},
UnexpectedLength {
path: String,
field: Option<String>,
expected: String,
actual: usize,
},
DuplicateName {
path: String,
field: Option<String>,
},
InvalidStringEncoding {
path: String,
field: Option<String>,
row: Option<usize>,
column: Option<String>,
},
InvalidDimensions {
path: String,
field: Option<String>,
reason: String,
},
InvalidPackageVersion {
path: String,
field: Option<String>,
reason: String,
},
}Expand description
A construction error from the typed installed-package metadata view.
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
UnexpectedType
UnexpectedLength
DuplicateName
InvalidStringEncoding
InvalidDimensions
InvalidPackageVersion
Implementations§
Trait Implementations§
impl Eq for ViewError
Source§impl Error for ViewError
impl Error for ViewError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ViewError
Auto Trait Implementations§
impl Freeze for ViewError
impl RefUnwindSafe for ViewError
impl Send for ViewError
impl Sync for ViewError
impl Unpin for ViewError
impl UnsafeUnpin for ViewError
impl UnwindSafe for ViewError
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