pub enum DeError {
InvalidType {
received: Unexpected,
expected: String,
},
InvalidValue {
received: Unexpected,
expected: String,
},
InvalidLength {
received: usize,
expected: String,
},
UnknownVariant {
variant: String,
expected: &'static [&'static str],
},
UnknownField {
field: String,
expected: &'static [&'static str],
},
MissingField {
field: &'static str,
},
DuplicateField {
field: &'static str,
},
NoSuchProperty,
PropertyMissingButRequired,
Other(String),
IntegerOutOfBounds(TryFromIntError, i64, &'static str),
DateTimeOutOfBounds(&'static str),
}
Variants§
InvalidType
Raised when a Deserialize
receives a type different from what it was
expecting.
InvalidValue
Raised when a Deserialize
receives a value of the right type but that
is wrong for some other reason.
InvalidLength
Raised when deserializing a sequence or map and the input data contains too many or too few elements.
UnknownVariant
Raised when a Deserialize
enum type received a variant with an
unrecognized name.
UnknownField
Raised when a Deserialize
struct type received a field with an
unrecognized name.
MissingField
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.
DuplicateField
Raised when a Deserialize
struct type received more than one of the
same field.
NoSuchProperty
PropertyMissingButRequired
Other(String)
IntegerOutOfBounds(TryFromIntError, i64, &'static str)
DateTimeOutOfBounds(&'static str)
Trait Implementations§
source§impl Error for DeError
impl Error for DeError
source§fn invalid_type(unexp: Unexp<'_>, exp: &dyn Expected) -> Self
fn invalid_type(unexp: Unexp<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a type different from what it was
expecting. Read moresource§fn invalid_value(unexp: Unexp<'_>, exp: &dyn Expected) -> Self
fn invalid_value(unexp: Unexp<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a value of the right type but that
is wrong for some other reason. Read moresource§fn invalid_length(len: usize, exp: &dyn Expected) -> Self
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
Raised when deserializing a sequence or map and the input data contains
too many or too few elements. Read more
source§fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
enum type received a variant with an
unrecognized name.source§fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
struct type received a field with an
unrecognized name.source§fn missing_field(field: &'static str) -> Self
fn missing_field(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.source§fn duplicate_field(field: &'static str) -> Self
fn duplicate_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type received more than one of the
same field.source§impl Error for DeError
impl Error for DeError
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<'de> IntoDeserializer<'de, DeError> for &'de BoltBytes
impl<'de> IntoDeserializer<'de, DeError> for &'de BoltBytes
§type Deserializer = BorrowedBytesDeserializer<'de, DeError>
type Deserializer = BorrowedBytesDeserializer<'de, DeError>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de> IntoDeserializer<'de, DeError> for &'de BoltList
impl<'de> IntoDeserializer<'de, DeError> for &'de BoltList
§type Deserializer = SeqDeserializer<Iter<'de, BoltType>, DeError>
type Deserializer = SeqDeserializer<Iter<'de, BoltType>, DeError>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de> IntoDeserializer<'de, DeError> for &'de BoltNode
impl<'de> IntoDeserializer<'de, DeError> for &'de BoltNode
§type Deserializer = BoltNodeDeserializer<'de>
type Deserializer = BoltNodeDeserializer<'de>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de> IntoDeserializer<'de, DeError> for &'de BoltPath
impl<'de> IntoDeserializer<'de, DeError> for &'de BoltPath
§type Deserializer = BoltPathDeserializer<'de>
type Deserializer = BoltPathDeserializer<'de>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de> IntoDeserializer<'de, DeError> for &'de BoltRelation
impl<'de> IntoDeserializer<'de, DeError> for &'de BoltRelation
§type Deserializer = BoltRelationDeserializer<'de>
type Deserializer = BoltRelationDeserializer<'de>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de> IntoDeserializer<'de, DeError> for &'de BoltString
impl<'de> IntoDeserializer<'de, DeError> for &'de BoltString
§type Deserializer = BorrowedStrDeserializer<'de, DeError>
type Deserializer = BorrowedStrDeserializer<'de, DeError>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de> IntoDeserializer<'de, DeError> for &'de BoltType
impl<'de> IntoDeserializer<'de, DeError> for &'de BoltType
§type Deserializer = BoltTypeDeserializer<'de>
type Deserializer = BoltTypeDeserializer<'de>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
source§impl<'de> IntoDeserializer<'de, DeError> for &'de BoltUnboundedRelation
impl<'de> IntoDeserializer<'de, DeError> for &'de BoltUnboundedRelation
§type Deserializer = BoltUnboundedRelationDeserializer<'de>
type Deserializer = BoltUnboundedRelationDeserializer<'de>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
Auto Trait Implementations§
impl RefUnwindSafe for DeError
impl Send for DeError
impl Sync for DeError
impl Unpin for DeError
impl UnwindSafe for DeError
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