Struct juniper_rocket::GraphQLRequest[][src]

pub struct GraphQLRequest<S = DefaultScalarValue>(_)
where
    S: ScalarValue
;
Expand description

Simple wrapper around an incoming GraphQL request

See the http module for more information. This type can be constructed automatically from both GET and POST routes by implementing the FromForm and FromData traits.

Implementations

Synchronously execute an incoming GraphQL query.

Asynchronously execute an incoming GraphQL query.

Returns the operation names associated with this request.

For batch requests there will be multiple names.

Trait Implementations

Formats the value using the given formatter. Read more

The associated error to be returned when the guard fails.

Asynchronously validates, parses, and converts an instance of Self from the incoming request body data. Read more

The form guard’s parsing context.

Initializes and returns the parsing context for Self.

Processes the value field field.

Processes the data field field.

Finalizes parsing. Returns the parsed value when successful or collection of Errors otherwise. Read more

Processes the external form or field error _error. Read more

Returns a default value, if any, to use when a value is desired and parsing fails. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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.

Converts self into a collection.

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.