pub fn failure(err: impl std::error::Error + 'static) -> Self {
        Validation {
            result: Err(ValidationError::new(err)),
            ..Validation::success()
        }
    }
/// Create a `Validation` with an error indicating the failure reason.
Create a `Validation` with an error indicating the failure reason.
Create a ` Validation ` with an error indicating the failure reason .
pub fn failure(err: impl std::error::Error + 'static) -> Self {
        Validation {
            result: Err(ValidationError::new(err)),
            ..Validation::success()
        }
    }
pub fn failure ( err : impl std :: error :: Error + ' static ) -> Self { Validation { result : Err ( ValidationError :: new ( err ) ) , .. Validation :: success ( ) } }
Create a `Validation` with an error indicating the failure reason.
Create a ` Validation ` with an error indicating the failure reason .
err
impl std::error::Error + 'static
err
impl std::error::Error + 'static