[][src]Trait async_graphql::extensions::Extension

pub trait Extension: Sync + Send + 'static {
    fn name(&self) -> &'static str;
fn result(&self) -> Value; fn parse_start(&self, query_source: &str) { ... }
fn parse_end(&self) { ... }
fn validation_start(&self) { ... }
fn validation_end(&self) { ... }
fn execution_start(&self) { ... }
fn execution_end(&self) { ... }
fn resolve_field_start(&self, info: &ResolveInfo) { ... }
fn resolve_field_end(&self, resolve_id: usize) { ... } }

Represents a GraphQL extension

Required methods

fn name(&self) -> &'static str

Extension name.

fn result(&self) -> Value

Get the results

Loading content...

Provided methods

fn parse_start(&self, query_source: &str)

Called at the begin of the parse.

fn parse_end(&self)

Called at the end of the parse.

fn validation_start(&self)

Called at the begin of the validation.

fn validation_end(&self)

Called at the end of the validation.

fn execution_start(&self)

Called at the begin of the execution.

fn execution_end(&self)

Called at the end of the execution.

fn resolve_field_start(&self, info: &ResolveInfo)

Called at the begin of the resolve field.

fn resolve_field_end(&self, resolve_id: usize)

Called at the end of the resolve field.

Loading content...

Implementors

impl Extension for ApolloTracing[src]

Loading content...