Skip to main content

ValidationErrorExt

Trait ValidationErrorExt 

Source
pub trait ValidationErrorExt<T> {
    // Required method
    fn map_validation_err(self, field: &str) -> Result<T>;
}
Expand description

Helper trait to convert validation errors

Required Methods§

Source

fn map_validation_err(self, field: &str) -> Result<T>

Implementations on Foreign Types§

Source§

impl<T> ValidationErrorExt<T> for Result<T>

Source§

fn map_validation_err(self, field: &str) -> Result<T>

Implementors§