Trait ValidateField

Source
pub trait ValidateField: Send + Sync {
    // Required method
    fn validate_field<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        field: &'life1 str,
        value: &'life2 Value,
    ) -> Pin<Box<dyn Future<Output = ValidationResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for validating individual fields

Required Methods§

Source

fn validate_field<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, field: &'life1 str, value: &'life2 Value, ) -> Pin<Box<dyn Future<Output = ValidationResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Validate a single field value

Implementors§