Enum juniper::http::GraphQLBatchResponse[][src]

pub enum GraphQLBatchResponse<'a, S = DefaultScalarValue> where
    S: ScalarValue
{ Single(GraphQLResponse<'a, S>), Batch(Vec<GraphQLResponse<'a, S>>), }
Expand description

Simple wrapper around the result (GraphQLResponse) from executing a GraphQLBatchRequest

This struct implements Serialize, so you can simply serialize this to JSON and send it over the wire. use the is_ok to determine wheter to send a 200 or 400 HTTP status code.

Variants

Single(GraphQLResponse<'a, S>)

Result of a single operation in a GraphQL request.

Batch(Vec<GraphQLResponse<'a, S>>)

Result of a batch operation in a GraphQL request.

Implementations

Returns if all the GraphQLResponse in this operation are ok, you can use it to determine wheter to send a 200 or 400 HTTP status code.

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.

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.