castle_types 0.20.2

all Castle types for Castle_Api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{Field, Inputs, Next, Value, State};

#[allow(unused_variables)]
#[async_trait::async_trait]
pub trait Directive: Send + Sync {
    async fn field_visitor(
        &self,
        field: Field,
        directive_args: &Inputs,
        next: Next,
        context: &State,
    ) -> Result<Value, anyhow::Error> {
        next.resolve(field).await
    }
}