[−][src]Trait async_graphql::guard::PostGuard
Field post guard
This is a post-condition for a field that is resolved if Ok(()
is returned, otherwise an error is returned.
This trait is defined through the async-trait
macro.
Required methods
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,
[−]
&'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,
Check whether to allow the result of the field through.