Enum serde_valid::error::Error
source · pub enum Error<E>where
E: 'static + Error,{
DeserializeError(E),
ValidationError(Errors<Error>),
}
Variants§
Implementations§
source§impl<E> Error<E>where
E: 'static + Error,
impl<E> Error<E>where E: 'static + Error,
pub fn is_serde_error(&self) -> bool
pub fn as_serde_error(&self) -> Option<&E>
pub fn is_validation_errors(&self) -> bool
pub fn as_validation_errors(&self) -> Option<&Errors>
Trait Implementations§
source§impl<E> Error for Error<E>where
E: 'static + Error,
Self: Debug + Display,
impl<E> Error for Error<E>where E: 'static + Error, Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()