Struct github_gql::query::Query
[−]
[src]
pub struct Query { /* fields omitted */ }
Used to query information from the GitHub API to possibly be used in
a Mutation
or for information to make decisions with how to interact.
Methods
impl Query
[src]
fn new() -> Self
[src]
Create a new Query
fn new_raw<T>(q: T) -> Self where
T: ToString,
[src]
T: ToString,
Create a new Query
using the given value as the input for the query to
GitHub. Any other methods used will assume the String
is empty. This
is a shortcut for doing:
let q = Query::new();
q.raw_query("my query which won't work");
as
let q = Query::new_raw("my query which won't work");
fn raw_query<T>(&mut self, q: T) where
T: ToString,
[src]
T: ToString,
Whatever you put here becomes your query and replaces anything you might
have built up before. This assumes you know what you're doing with the
API so no guarantees can be made here that it will work, only that if
used this can be used to make a query using the client::Github
type.