Type Definition semval::ValidationResult

source ·
pub type ValidationResult<V> = Result<(), Context<V>>;
Expand description

Result of a validation

The result is Ok and empty if the validation succeeded. It is a validation context wrapped into Err that carries one or more invalidities.

In contrast to common results the actual payload is carried by the error variant while a successful result is just the unit type.

Trait Implementations

Converts to this type from the input type.