pub enum MetadataError {
Show 13 variants
InvalidFormat(String),
MissingField(String),
InvalidValue {
field: String,
reason: String,
},
ValidationError(String),
JsonError(String),
TransformError(String),
ExtractionError(String),
Unsupported(String),
Io(Error),
UrlError(ParseError),
DateTimeError(String),
VocabularyError(String),
Internal(String),
}Expand description
Errors that can occur during metadata operations.
Variants§
InvalidFormat(String)
Invalid metadata format
MissingField(String)
Missing required field
InvalidValue
Invalid field value
ValidationError(String)
Validation error
JsonError(String)
JSON parsing error
TransformError(String)
Transformation error
ExtractionError(String)
Extraction error
Unsupported(String)
Unsupported operation
Io(Error)
I/O error
UrlError(ParseError)
URL parse error
DateTimeError(String)
Date/time parse error
VocabularyError(String)
Vocabulary error
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for MetadataError
impl Debug for MetadataError
Source§impl Display for MetadataError
impl Display for MetadataError
Source§impl Error for MetadataError
impl Error for MetadataError
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 From<Error> for MetadataError
impl From<Error> for MetadataError
Source§impl From<Error> for MetadataError
impl From<Error> for MetadataError
Source§impl From<ParseError> for MetadataError
impl From<ParseError> for MetadataError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for MetadataError
impl From<ParseError> for MetadataError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MetadataError
impl !RefUnwindSafe for MetadataError
impl Send for MetadataError
impl Sync for MetadataError
impl Unpin for MetadataError
impl UnsafeUnpin for MetadataError
impl !UnwindSafe for MetadataError
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