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
data: Option<Data>
errors: Option<Vec<GraphQLError>>
Trait Implementations
impl<Data: Debug> Debug for GraphQLResponse<Data>
[src]
impl<Data: Debug> Debug for GraphQLResponse<Data>
Auto Trait Implementations
impl<Data> Send for GraphQLResponse<Data> where
Data: Send,
impl<Data> Send for GraphQLResponse<Data> where
Data: Send,
impl<Data> Sync for GraphQLResponse<Data> where
Data: Sync,
impl<Data> Sync for GraphQLResponse<Data> where
Data: Sync,