Enum juniper::http::GraphQLBatchRequest[][src]

pub enum GraphQLBatchRequest<S = DefaultScalarValue> where
    S: ScalarValue
{ Single(GraphQLRequest<S>), Batch(Vec<GraphQLRequest<S>>), }
Expand description

Simple wrapper around GraphQLRequest to allow the handling of Batch requests.

Variants

Single(GraphQLRequest<S>)

A single operation request.

Batch(Vec<GraphQLRequest<S>>)

A batch operation request.

Empty batch is considered as invalid value, so cannot be deserialized.

Implementations

Execute a GraphQL batch request synchronously using the specified schema and context

This is a simple wrapper around the execute_sync function exposed in GraphQLRequest.

Executes a GraphQL request using the specified schema and context

This is a simple wrapper around the execute function exposed in GraphQLRequest

The operation names of the request.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. 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.

Performs the conversion.

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.