Trait graphql_client::GraphQLQuery[][src]

pub trait GraphQLQuery<'de> {
    type Variables: Serialize;
    type ResponseData: Deserialize<'de>;
    fn build_query(
        variables: Self::Variables
    ) -> GraphQLQueryBody<Self::Variables>; }

A convenience trait that can be used to build a GraphQL request body.

Associated Types

Required Methods

Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.

Implementors