github-gql-rs 0.0.1

Pure Rust bindings to the Github V4 API using GraphQL
Documentation
//! Library to used to access the Github API with Rust

#[macro_use]
extern crate error_chain;
extern crate hyper;
extern crate hyper_rustls;
extern crate futures;
extern crate tokio_core;
extern crate serde;
extern crate serde_json;

pub mod errors {
    error_chain!{
        foreign_links {
            Io(::std::io::Error)
                #[doc = "`std::io::Error` converted to an error-chain type"];
            Serde(::serde_json::Error)
                #[doc = "`serde_json::Error` converted to an error-chain type"];
            Hyper(::hyper::Error)
                #[doc = "`hyper::Error` converted to an error-chain type"];
        }
    }
}

pub mod client;
pub mod query;
pub mod mutation;

pub use hyper::{Headers, StatusCode};

use errors::Result;
pub trait IntoGithubRequest {
    fn into_github_req(&self, token: &str) -> Result<hyper::Request>;
}