pub struct DeserializationError(pub Option<String>);Expand description
DeserializationError gloss error.
Tuple Fields§
§0: Option<String>Implementations§
Source§impl DeserializationError
impl DeserializationError
Sourcepub fn as_problem<ToStringT>(gloss: ToStringT) -> Problemwhere
ToStringT: ToString,
pub fn as_problem<ToStringT>(gloss: ToStringT) -> Problemwhere
ToStringT: ToString,
Problem constructor.
Sourcepub fn default_as_problem() -> Problem
pub fn default_as_problem() -> Problem
Problem constructor.
Trait Implementations§
Source§impl Clone for DeserializationError
impl Clone for DeserializationError
Source§fn clone(&self) -> DeserializationError
fn clone(&self) -> DeserializationError
Returns a duplicate 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 Default for DeserializationError
impl Default for DeserializationError
Source§fn default() -> DeserializationError
fn default() -> DeserializationError
Returns the “default value” for a type. Read more
Source§impl Display for DeserializationError
impl Display for DeserializationError
Source§impl Error for DeserializationError
impl Error for DeserializationError
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 From<String> for DeserializationError
impl From<String> for DeserializationError
Source§impl Hash for DeserializationError
impl Hash for DeserializationError
Source§impl Ord for DeserializationError
impl Ord for DeserializationError
Source§impl PartialEq for DeserializationError
impl PartialEq for DeserializationError
Source§impl PartialOrd for DeserializationError
impl PartialOrd for DeserializationError
impl Eq for DeserializationError
Auto Trait Implementations§
impl Freeze for DeserializationError
impl RefUnwindSafe for DeserializationError
impl Send for DeserializationError
impl Sync for DeserializationError
impl Unpin for DeserializationError
impl UnsafeUnpin 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<ToStringT> IntoCommonProblem for ToStringTwhere
ToStringT: ToString,
impl<ToStringT> IntoCommonProblem for ToStringTwhere
ToStringT: ToString,
Source§fn gloss(self) -> Problem
fn gloss(self) -> Problem
Into a GlossError problem.
Source§fn into_thread_problem(self) -> Problem
fn into_thread_problem(self) -> Problem
Into a ThreadError problem.
Source§impl<ErrorT> IntoProblem for ErrorT
impl<ErrorT> IntoProblem for ErrorT
Source§fn into_problem(self) -> Problem
fn into_problem(self) -> Problem
Into a Problem.
Source§impl<ErrorT> IntoSerdeProblem for ErrorT
impl<ErrorT> IntoSerdeProblem for ErrorT
Source§fn into_serde_serialize_problem(self) -> SerdeProblem
fn into_serde_serialize_problem(self) -> SerdeProblem
Available on crate feature
serde only.Source§fn into_serde_deserialize_problem(self) -> SerdeProblem
fn into_serde_deserialize_problem(self) -> SerdeProblem
Available on crate feature
serde only.Source§impl<ErrorT> IterateErrorSources for ErrorTwhere
ErrorT: 'static + Error,
impl<ErrorT> IterateErrorSources for ErrorTwhere
ErrorT: 'static + Error,
Source§fn iter_sources<'this>(&'this self) -> ErrorSourceIterator<'this> ⓘ
fn iter_sources<'this>(&'this self) -> ErrorSourceIterator<'this> ⓘ
Iterate the Error::source chain.