Enum serde_content::Expected
source · #[non_exhaustive]pub enum Expected {
}
Expand description
The type that was expected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unit
Expected the Rust unit type, ()
.
Bool
Expected a Rust boolean.
Char
Expected a Rust character.
String
Expected a Rust string.
StaticStr
Expected a static string slice.
Bytes
Expected a Rust byte array.
Seq
Expected an array of Rust values.
Map
Expected a map of Rust values.
Struct
Expected a Rust struct.
Enum
Expected a Rust enum.
Tuple(usize)
Expected a Rust tuple.
Identifier
Expected a struct field or an enum variant.
I8
Expected an 8-bit signed integer type.
U8
Expected an 8-bit unsigned integer type.
I16
Expected a 16-bit signed integer type.
U16
Expected a 16-bit unsigned integer type.
I32
Expected a 32-bit signed integer type.
U32
Expected a 32-bit unsigned integer type.
F32
Expected a 32-bit floating point type.
I64
Expected a 64-bit signed integer type.
U64
Expected a 64-bit unsigned integer type.
F64
Expected a 32-bit floating point type.
I128
Expected a 128-bit signed integer type.
U128
Expected a 128-bit unsigned integer type.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Expected
impl<'de> Deserialize<'de> for Expected
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialOrd for Expected
impl PartialOrd for Expected
impl StructuralPartialEq for Expected
Auto Trait Implementations§
impl Freeze for Expected
impl RefUnwindSafe for Expected
impl Send for Expected
impl Sync for Expected
impl Unpin for Expected
impl UnwindSafe for Expected
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)