#[non_exhaustive]pub enum TabularReadError {
UnknownEntity {
id: EntityId,
},
WrongEntityType {
id: EntityId,
expected: &'static str,
actual: String,
},
UnsupportedSchema {
schema: String,
},
}Expand description
Why a read could not produce a view at all.
Defects INSIDE a table or series are not errors: they are reported as
crate::TabularIssues on the view, beside what did decode.
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.
UnknownEntity
No record has this id.
WrongEntityType
The record is not the kind the read asked for.
Fields
UnsupportedSchema
The declared schema is not one this view decodes.
Trait Implementations§
Source§impl Clone for TabularReadError
impl Clone for TabularReadError
Source§impl Debug for TabularReadError
impl Debug for TabularReadError
Source§impl Display for TabularReadError
impl Display for TabularReadError
impl Eq for TabularReadError
Source§impl Error for TabularReadError
impl Error for TabularReadError
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()
Source§impl PartialEq for TabularReadError
impl PartialEq for TabularReadError
impl StructuralPartialEq for TabularReadError
Auto Trait Implementations§
impl Freeze for TabularReadError
impl RefUnwindSafe for TabularReadError
impl Send for TabularReadError
impl Sync for TabularReadError
impl Unpin for TabularReadError
impl UnsafeUnpin for TabularReadError
impl UnwindSafe for TabularReadError
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