Enum async_graphql::BatchRequest[][src]

pub enum BatchRequest {
    Single(Request),
    Batch(Vec<Request>),
}

Batch support for GraphQL requests, which is either a single query, or an array of queries

Reference: https://www.apollographql.com/blog/batching-client-graphql-queries-a685f5bcd41b/

Variants

Single(Request)

Single query

Batch(Vec<Request>)

Non-empty array of queries

Implementations

impl BatchRequest[src]

pub fn into_single(self) -> Result<Request, ParseRequestError>[src]

Attempt to convert the batch request into a single request.

Errors

Fails if the batch request is a list of requests with a message saying that batch requests aren’t supported.

Trait Implementations

impl Debug for BatchRequest[src]

impl<'de> Deserialize<'de> for BatchRequest[src]

impl From<Request> for BatchRequest[src]

impl From<Vec<Request, Global>> for BatchRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]