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
type Variables: Serialize
type ResponseData: Deserialize<'de>
Required Methods
fn build_query(variables: Self::Variables) -> GraphQLQueryBody<Self::Variables>
Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.