Trait githuber::GithubApi [−][src]
pub trait GithubApi<B>: Clone + Debug where
Self: Clone + Debug, {
const HTTP_METHOD: HttpMethod;
const PATH: &'static str;
const ACCEPT: &'static str;
fn build_uri(&self) -> Uri;
fn build_body(&self) -> B;
fn build_request(&self) -> Request<B> { ... }
fn build_request_with_extra_queries(
&self,
extra_queries: impl AsRef<str>
) -> Request<B> { ... }
}
Expand description
Implement this for your struct to turn it into an easy-to-use GitHub API.