[−][src]Trait verify::Verifier
This trait is implemented by types that validate a value internally.
It is useful when the actual Validator is not exposed, or there might be more than one validations taking place for the same value.
Associated Types
Loading content...Required methods
fn verify_value<V: ?Sized + Validate<Span = S>>(
&self,
value: &V
) -> Result<(), Self::Error>
&self,
value: &V
) -> Result<(), Self::Error>
Validate a value internally.
Provided methods
fn verify_value_with_span<V: ?Sized + Validate<Span = S>>(
&self,
value: &V,
_span: Option<V::Span>
) -> Result<(), Self::Error>
&self,
value: &V,
_span: Option<V::Span>
) -> Result<(), Self::Error>
Validators that support hierarchical spans might require a starting parent span.