[−][src]Trait form_validation::Validation
A function/struct/item that can perform validation on an item with
a given Value
type.
Required methods
fn validate_value(
&self,
value: &Value,
key: &Key
) -> Result<(), ValidationErrors<Key>>
&self,
value: &Value,
key: &Key
) -> Result<(), ValidationErrors<Key>>
Validate a given form field referenced by a given Key
, that
contains a given Value
, returns
ValidationErrors if there are any.
Implementors
impl<Value, Key> Validation<Value, Key> for Validator<Value, Key> where
Key: PartialEq + Clone,
[src]
Key: PartialEq + Clone,
fn validate_value(
&self,
value: &Value,
key: &Key
) -> Result<(), ValidationErrors<Key>>
[src]
&self,
value: &Value,
key: &Key
) -> Result<(), ValidationErrors<Key>>
impl<Value, Key> Validation<Value, Key> for ValidatorFn<Value, Key> where
Key: Clone + PartialEq,
[src]
Key: Clone + PartialEq,
fn validate_value(
&self,
value: &Value,
key: &Key
) -> Result<(), ValidationErrors<Key>>
[src]
&self,
value: &Value,
key: &Key
) -> Result<(), ValidationErrors<Key>>