Struct serde_nothing::NothingDeserializeError
source · [−]pub struct NothingDeserializeError;
Expand description
Error type for Nothing
deserializer.
Trait Implementations
sourceimpl Clone for NothingDeserializeError
impl Clone for NothingDeserializeError
sourcefn clone(&self) -> NothingDeserializeError
fn clone(&self) -> NothingDeserializeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NothingDeserializeError
impl Debug for NothingDeserializeError
sourceimpl Display for NothingDeserializeError
impl Display for NothingDeserializeError
sourceimpl Error for NothingDeserializeError
impl Error for NothingDeserializeError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl Error for NothingDeserializeError
impl Error for NothingDeserializeError
sourcefn custom<T>(_: T) -> Self
fn custom<T>(_: T) -> Self
Raised when there is general error when deserializing a type. Read more
sourcefn invalid_type(_: Unexpected<'_>, _: &dyn Expected) -> Self
fn invalid_type(_: Unexpected<'_>, _: &dyn Expected) -> Self
Raised when a Deserialize
receives a type different from what it was
expecting. Read more
sourcefn invalid_value(_: Unexpected<'_>, _: &dyn Expected) -> Self
fn invalid_value(_: Unexpected<'_>, _: &dyn Expected) -> Self
Raised when a Deserialize
receives a value of the right type but that
is wrong for some other reason. Read more
sourcefn invalid_length(_: usize, _: &dyn Expected) -> Self
fn invalid_length(_: usize, _: &dyn Expected) -> Self
Raised when deserializing a sequence or map and the input data contains too many or too few elements. Read more
sourcefn unknown_variant(_: &str, _: &'static [&'static str]) -> Self
fn unknown_variant(_: &str, _: &'static [&'static str]) -> Self
Raised when a Deserialize
enum type received a variant with an
unrecognized name. Read more
sourcefn unknown_field(_: &str, _: &'static [&'static str]) -> Self
fn unknown_field(_: &str, _: &'static [&'static str]) -> Self
Raised when a Deserialize
struct type received a field with an
unrecognized name. Read more
sourcefn missing_field(_: &'static str) -> Self
fn missing_field(_: &'static str) -> Self
Raised when a Deserialize
struct type expected to receive a required
field with a particular name but that field was not present in the
input. Read more
sourcefn duplicate_field(_: &'static str) -> Self
fn duplicate_field(_: &'static str) -> Self
Raised when a Deserialize
struct type received more than one of the
same field. Read more
sourceimpl Hash for NothingDeserializeError
impl Hash for NothingDeserializeError
impl Copy for NothingDeserializeError
impl Eq for NothingDeserializeError
impl StructuralEq for NothingDeserializeError
impl StructuralPartialEq for NothingDeserializeError
Auto Trait Implementations
impl RefUnwindSafe for NothingDeserializeError
impl Send for NothingDeserializeError
impl Sync for NothingDeserializeError
impl Unpin for NothingDeserializeError
impl UnwindSafe for NothingDeserializeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more