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>
impl<E> Error for Error<E>
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()
Auto Trait Implementations§
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
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