[][src]Trait async_graphql::guard::PostGuard

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

Field post guard

Guard is a post-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, 'life3, 'async_trait>(
    &'life0 self,
    ctx: &'life1 Context<'life2>,
    result: &'life3 T
) -> Pin<Box<dyn Future<Output = FieldResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<T: Send + Sync, A: PostGuard<T> + Send + Sync, B: PostGuard<T> + Send + Sync> PostGuard<T> for PostAnd<T, A, B>[src]

Loading content...