#[non_exhaustive]pub enum BackendMetadataValidationError {
BlankField {
field: &'static str,
},
EmptyField {
field: &'static str,
},
DuplicateEntry {
field: &'static str,
value: String,
},
NominalRangeNotFinite,
NominalRangeScaleMismatch,
NominalRangeOutOfOrder,
InvalidCapabilities {
field: &'static str,
message: &'static str,
},
}Expand description
Errors returned when backend metadata fails the shared consistency checks.
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.
BlankField
A required metadata field is blank or whitespace-padded.
EmptyField
A required list field is empty.
DuplicateEntry
A catalog-style list field contains a duplicate entry.
Fields
NominalRangeNotFinite
The nominal range contains a non-finite Julian-day bound.
NominalRangeScaleMismatch
The nominal range bounds use different time scales.
NominalRangeOutOfOrder
The nominal range end precedes the start.
InvalidCapabilities
The declared capability flags are internally inconsistent.
Implementations§
Source§impl BackendMetadataValidationError
impl BackendMetadataValidationError
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
Returns a compact validation summary string.
Trait Implementations§
impl Eq for BackendMetadataValidationError
Source§impl Error for BackendMetadataValidationError
impl Error for BackendMetadataValidationError
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 BackendMetadataValidationError
Auto Trait Implementations§
impl Freeze for BackendMetadataValidationError
impl RefUnwindSafe for BackendMetadataValidationError
impl Send for BackendMetadataValidationError
impl Sync for BackendMetadataValidationError
impl Unpin for BackendMetadataValidationError
impl UnsafeUnpin for BackendMetadataValidationError
impl UnwindSafe for BackendMetadataValidationError
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