Trait async_graphql::CustomValidator[][src]

pub trait CustomValidator<T: InputType> {
    fn check<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        ctx: &'life1 Context<'life2>,
        value: &'life3 T
    ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }
Expand description

Represents a custom input value validator.

Required methods

Check the value is valid.

Implementors