Directive

Trait Directive 

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

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

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§