[][src]Trait async_graphql::guard::Guard

pub trait Guard {
#[must_use]    fn check<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 Context<'life2>
    ) -> Pin<Box<dyn Future<Output = FieldResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Field guard

Guard is a pre-condition for a field that is resolved if Ok(() is returned, otherwise an error is returned.

Required methods

#[must_use]fn check<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    ctx: &'life1 Context<'life2>
) -> Pin<Box<dyn Future<Output = FieldResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<A: Guard + Send + Sync, B: Guard + Send + Sync> Guard for And<A, B>[src]

Loading content...