Struct github_gql::mutation::Mutation
[−]
[src]
pub struct Mutation { /* fields omitted */ }
Used to mutate information on GitHub
Methods
impl Mutation
[src]
fn new() -> Self
[src]
Create a new Mutation
fn new_raw<T>(m: T) -> Self where
T: ToString,
[src]
T: ToString,
Create a new Mutation
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 m = Mutation::new();
m.raw_query("my query which won't work");
as
let m = Mutation::new_raw("my query which won't work");
fn raw_mutation<T>(&mut self, m: 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.