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§
sourcefn unexpected(self, expected: Expected) -> Error
fn unexpected(self, expected: Expected) -> Error
Consumes the type and returns an error.