[−][src]Enum amadeus::source::serde::_internal::de::Unexpected
Unexpected
represents an unexpected invocation of any one of the Visitor
trait methods.
This is used as an argument to the invalid_type
, invalid_value
, and
invalid_length
methods of the Error
trait to build error messages.
fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E> where E: de::Error, { Err(de::Error::invalid_type(Unexpected::Bool(v), &self)) }
Variants
Bool(bool)
The input contained a boolean value that was not expected.
Unsigned(u64)
The input contained an unsigned integer u8
, u16
, u32
or u64
that
was not expected.
Signed(i64)
The input contained a signed integer i8
, i16
, i32
or i64
that
was not expected.
Float(f64)
The input contained a floating point f32
or f64
that was not
expected.
Char(char)
The input contained a char
that was not expected.
Str(&'a str)
The input contained a &str
or String
that was not expected.
The input contained a &[u8]
or Vec<u8>
that was not expected.
The input contained a unit ()
that was not expected.
The input contained an Option<T>
that was not expected.
The input contained a newtype struct that was not expected.
The input contained a sequence that was not expected.
The input contained a map that was not expected.
The input contained an enum that was not expected.
The input contained a unit variant that was not expected.
The input contained a newtype variant that was not expected.
The input contained a tuple variant that was not expected.
The input contained a struct variant that was not expected.
Other(&'a str)
A message stating what uncategorized thing the input contained that was not expected.
The message should be a noun or noun phrase, not capitalized and without a period. An example message is "unoriginal superhero".
Trait Implementations
impl<'a> StructuralPartialEq for Unexpected<'a>
[src]
impl<'a> Clone for Unexpected<'a>
[src]
fn clone(&self) -> Unexpected<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for Unexpected<'a>
[src]
impl<'a> PartialEq<Unexpected<'a>> for Unexpected<'a>
[src]
fn eq(&self, other: &Unexpected<'a>) -> bool
[src]
fn ne(&self, other: &Unexpected<'a>) -> bool
[src]
impl<'a> Copy for Unexpected<'a>
[src]
impl<'a> Display for Unexpected<'a>
[src]
Auto Trait Implementations
impl<'a> Send for Unexpected<'a>
impl<'a> Sync for Unexpected<'a>
impl<'a> Unpin for Unexpected<'a>
impl<'a> UnwindSafe for Unexpected<'a>
impl<'a> RefUnwindSafe for Unexpected<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<A, B> Downcast<A> for B where
A: DowncastFrom<B>,
[src]
A: DowncastFrom<B>,
fn downcast(self) -> Result<A, DowncastError>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> IntersectPlusUnionIsPlus for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Type for T
[src]
const METATYPE: MetaType
[src]
type Meta = Concrete
Type of metadata for type.
fn meta(self: *const T) -> <T as Type>::Meta
[src]
fn data(self: *const T) -> *const ()
[src]
fn data_mut(self: *mut T) -> *mut ()
[src]
fn dangling(_t: <T as Type>::Meta) -> NonNull<T>
[src]
fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T
[src]
fn meta_type(self: *const Self) -> MetaType
[src]
impl<T> Type for T where
T: ?Sized,
[src]
T: ?Sized,
default fn meta(self: *const T) -> <T as Type>::Meta
[src]
default fn data(self: *const T) -> *const ()
[src]
default fn data_mut(self: *mut T) -> *mut ()
[src]
default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
[src]
default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
[src]
const METATYPE: MetaType
[src]
type Meta: 'static
fn meta_type(self: *const Self) -> MetaType
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,