Trait semval::IntoValidated

source ·
pub trait IntoValidated<V: Validate> {
    fn into_validated(self) -> ValidatedResult<V>;
}
Expand description

Value-to-value conversion with post-validation of the output value

Prefer to implement ValidatedFrom for types inside the current crate. All types that implement ValidatedFrom implicitly implement this trait.

Required Methods

Convert self into output value and validate the output

Errors

Returns Err with the collected invalidities if one or more validations failed.

Implementors