Enum async_graphql::BatchResponse[][src]

pub enum BatchResponse {
    Single(Response),
    Batch(Vec<Response>),
}

Response for batchable queries

Variants

Single(Response)

Response for single queries

Batch(Vec<Response>)

Response for batch queries

Implementations

impl BatchResponse[src]

pub fn cache_control(&self) -> CacheControl[src]

Gets cache control value

pub fn is_ok(&self) -> bool[src]

Returns true if all responses are ok.

pub fn http_headers(&self) -> impl Iterator<Item = (&str, &str)>[src]

Provides an iterator over all of the HTTP headers set on the response

Trait Implementations

impl Debug for BatchResponse[src]

impl From<Response> for BatchResponse[src]

impl From<Vec<Response, Global>> for BatchResponse[src]

impl Serialize for BatchResponse[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> From<T> for T[src]

impl<T> FutureExt 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>,