Struct async_graphql::http::GraphQLPlaygroundConfig[][src]

pub struct GraphQLPlaygroundConfig<'a> { /* fields omitted */ }
Expand description

Config for GraphQL Playground

Implementations

Create a config for GraphQL playground.

Set subscription endpoint, for example: ws://localhost:8000.

Set HTTP header for per query.

Set Playground setting for per query.

GraphQLPlaygroundConfig::new("/api/graphql")
    .with_setting("setting", false)
    .with_setting("other", Value::Null);

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more