[−][src]Enum serde_db::de::DeserializationError
The errors that can arise while deserializing with serde_db::de
.
Variants
ConversionError(ConversionError)
Deserialization failed due to a conversion error.
SerdeError(String)
Error reported from serde framework.
Usage(String)
The structure of the target object does not fit to the structure of the object being deserialized.
NotImplemented(&'static str)
Thrown by functions in the Deserializer interface that are not implemented. This exception should never be seen in practice.
UnknownField(String)
The target structure misses a field for which data are provided.
The deserialization cannot consume all existing rows.
The deserialization cannot consume all existing columns.
Trait Implementations
impl Debug for DeserializationError
[src]
impl Display for DeserializationError
[src]
impl Error for DeserializationError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl Error for DeserializationError
[src]
fn custom<T: Display>(msg: T) -> Self
[src]
fn invalid_type(unexp: Unexpected, exp: &dyn Expected) -> Self
[src]
fn invalid_value(unexp: Unexpected, exp: &dyn Expected) -> Self
[src]
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
[src]
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
[src]
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
[src]
fn missing_field(field: &'static str) -> Self
[src]
fn duplicate_field(field: &'static str) -> Self
[src]
impl From<ConversionError> for DeserializationError
[src]
fn from(error: ConversionError) -> DeserializationError
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,