Enum hayagriva::types::DeserializationError
source · pub enum DeserializationError {
Date(DateError),
Duration(DurationError),
Person(PersonError),
Numeric(NumericError),
Url(ParseError),
FormatString(ChunkedStrParseError),
Expected(&'static str),
InvalidLanguageIdentifier,
ExpectedKey(&'static str),
}
Expand description
This error can occur when converting from YAML to a type.
Variants§
Date(DateError)
Duration(DurationError)
Person(PersonError)
Numeric(NumericError)
Url(ParseError)
FormatString(ChunkedStrParseError)
Expected(&'static str)
InvalidLanguageIdentifier
ExpectedKey(&'static str)
Trait Implementations§
source§impl Clone for DeserializationError
impl Clone for DeserializationError
source§fn clone(&self) -> DeserializationError
fn clone(&self) -> DeserializationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DeserializationError
impl Debug for DeserializationError
source§impl Display for DeserializationError
impl Display for DeserializationError
source§impl Error for DeserializationError
impl Error for DeserializationError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ChunkedStrParseError> for DeserializationError
impl From<ChunkedStrParseError> for DeserializationError
source§fn from(source: ChunkedStrParseError) -> Self
fn from(source: ChunkedStrParseError) -> Self
Converts to this type from the input type.
source§impl From<DateError> for DeserializationError
impl From<DateError> for DeserializationError
source§impl From<DurationError> for DeserializationError
impl From<DurationError> for DeserializationError
source§fn from(source: DurationError) -> Self
fn from(source: DurationError) -> Self
Converts to this type from the input type.
source§impl From<NumericError> for DeserializationError
impl From<NumericError> for DeserializationError
source§fn from(source: NumericError) -> Self
fn from(source: NumericError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for DeserializationError
impl From<ParseError> for DeserializationError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<PersonError> for DeserializationError
impl From<PersonError> for DeserializationError
source§fn from(source: PersonError) -> Self
fn from(source: PersonError) -> Self
Converts to this type from the input type.
source§impl PartialEq for DeserializationError
impl PartialEq for DeserializationError
source§fn eq(&self, other: &DeserializationError) -> bool
fn eq(&self, other: &DeserializationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeserializationError
impl StructuralPartialEq for DeserializationError
Auto Trait Implementations§
impl RefUnwindSafe for DeserializationError
impl Send for DeserializationError
impl Sync for DeserializationError
impl Unpin for DeserializationError
impl UnwindSafe for DeserializationError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.