serde_valid/validation/error/
into_error.rs

1pub trait IntoError<E>: Sized {
2    fn into_error(self) -> crate::validation::Error {
3        self.into_error_by(crate::validation::error::Format::Default)
4    }
5
6    fn into_error_by(self, format: crate::validation::error::Format<E>)
7        -> crate::validation::Error;
8}