[−][src]Trait async_graphql::guard::PostGuard
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
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,
Implementors
impl<T: Send + Sync, A: PostGuard<T> + Send + Sync, B: PostGuard<T> + Send + Sync> PostGuard<T> for PostAnd<T, A, B>
[src][−]
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,
[src]
&'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,