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
Trait Implementations
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for GraphQLBatchResponse<'a, S> where
S: RefUnwindSafe,
impl<'a, S> Send for GraphQLBatchResponse<'a, S> where
S: Send,
impl<'a, S> Sync for GraphQLBatchResponse<'a, S> where
S: Sync,
impl<'a, S> Unpin for GraphQLBatchResponse<'a, S> where
S: Unpin,
impl<'a, S> UnwindSafe for GraphQLBatchResponse<'a, S> where
S: UnwindSafe,