pub trait QueryVariables {
    type Fields;

    const VARIABLES: &'static [(&'static str, VariableType)];
}
Expand description

Allows a struct to be used as variables in a GraphQL query.

Users should not implement this themselves, and should use the QueryVariables derive. All the fields on a QueryVariables struct should be available as variables in the query, using $variable_name notation.

Required Associated Types§

A struct that determines which variables are available when using this struct.

Required Associated Constants§

An associated constant that contains the variable names & their types.

This is used to construct the query string we send to a server.

Implementations on Foreign Types§

Implementors§