bluejay-core 0.3.1

Base GraphQL abstractions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::definition::{DirectiveDefinition, SchemaDefinition};

pub trait Directive: crate::Directive<true> {
    type DirectiveDefinition: DirectiveDefinition;

    fn definition<'a, S: SchemaDefinition<DirectiveDefinition = Self::DirectiveDefinition>>(
        &'a self,
        schema_definition: &'a S,
    ) -> &'a Self::DirectiveDefinition;
}

pub trait Directives: crate::Directives<true, Directive = <Self as Directives>::Directive> {
    type Directive: Directive;
}