Enum serde_value::Unexpected
source · pub enum Unexpected {
}
Variants§
Bool(bool)
Unsigned(u64)
Signed(i64)
Float(f64)
Char(char)
Str(String)
Bytes(Vec<u8>)
Unit
Option
NewtypeStruct
Seq
Map
Enum
UnitVariant
NewtypeVariant
TupleVariant
StructVariant
Other(String)
Implementations§
source§impl Unexpected
impl Unexpected
pub fn to_unexpected<'a>(&'a self) -> Unexpected<'a>
Trait Implementations§
source§impl Debug for Unexpected
impl Debug for Unexpected
source§impl<'a> From<Unexpected<'a>> for Unexpected
impl<'a> From<Unexpected<'a>> for Unexpected
source§fn from(unexp: Unexpected<'_>) -> Unexpected
fn from(unexp: Unexpected<'_>) -> Unexpected
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Unexpected
impl RefUnwindSafe for Unexpected
impl Send for Unexpected
impl Sync for Unexpected
impl Unpin for Unexpected
impl UnwindSafe for Unexpected
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