Trait serde_content::Unexpected

source ·
pub trait Unexpected {
    // Required method
    fn unexpected(self, expected: Expected) -> Error;
}
Expand description

A convenience wrapper for constructing crate::Found and returning an error.

Required Methods§

source

fn unexpected(self, expected: Expected) -> Error

Consumes the type and returns an error.

Implementations on Foreign Types§

source§

impl Unexpected for Box<Enum<'_>>

source§

fn unexpected(self, expected: Expected) -> Error

source§

impl Unexpected for Box<Struct<'_>>

source§

fn unexpected(self, expected: Expected) -> Error

Implementors§