Trait githuber::api::Api

source ·
pub trait Api {
    const ACCEPT: &'static str;
    const BASE_URI: &'static str = "https://api.github.com";

    fn api(&self) -> String;
}
Expand description

Abstraction of GitHub REST API.

Required Associated Constants

Request’s header Accept’s value.

Provided Associated Constants

GitHub REST APIs’ base prefix.

Required Methods

Request’s target URI/URL.

Implementors