Module validate

Module validate 

Source
Expand description

Objects that can validate themselves.

The design is loosely inspired by the validator package, but to support the use case of compositional validation in a library (rather than an application), the validation error type is generic, not string-based.

Traits§

Validate
An object that can validate itself.

Functions§

unwrap_errors
Unwrap Result with validation errors into a list of errors.
wrap_errors
Wrap iterator of validation errors into a Result.