Struct graphql_client::GraphQLResponse[][src]

pub struct GraphQLResponse<Data> {
    pub data: Option<Data>,
    pub errors: Option<Vec<GraphQLError>>,
}

The generic shape taken by the responses of GraphQL APIs.

This will generally be used with the ResponseData struct from a derived module.

Spec: [https://github.com/facebook/graphql/blob/master/spec/Section%207%20--%20Response.md]

Fields

Trait Implementations

impl<Data: Debug> Debug for GraphQLResponse<Data>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<Data> Send for GraphQLResponse<Data> where
    Data: Send

impl<Data> Sync for GraphQLResponse<Data> where
    Data: Sync