Struct hubcaps::Github
[−]
[src]
pub struct Github { /* fields omitted */ }
Entry point interface for interacting with Github API
Methods
impl Github
[src]
fn new<A>(agent: A, client: Client, credentials: Credentials) -> Github where
A: Into<String>,
A: Into<String>,
Create a new Github instance. This will typically be how you interface with all other operations
fn host<H, A>(
host: H,
agent: A,
client: Client,
credentials: Credentials
) -> Github where
H: Into<String>,
A: Into<String>,
host: H,
agent: A,
client: Client,
credentials: Credentials
) -> Github where
H: Into<String>,
A: Into<String>,
Create a new Github instance hosted at a custom location. Useful for github enterprise installations ( yourdomain.com/api/v3/ )
fn repo<O, R>(&self, owner: O, repo: R) -> Repository where
O: Into<String>,
R: Into<String>,
O: Into<String>,
R: Into<String>,
Return a reference to a Github reposistory
fn user_repos<S>(&self, owner: S) -> UserRepositories where
S: Into<String>,
S: Into<String>,
Return a reference to the collection of repositories owned by and associated with an owner
fn repos(&self) -> Repositories
Return a reference to the collection of repositories owned by the user associated with the current authentication credentials
fn org<O>(&self, org: O) -> Organization where
O: Into<String>,
O: Into<String>,
fn orgs(&self) -> Organizations
Return a reference to the collection of organizations that the user associated with the current authentication credentials is in
fn user_orgs<U>(&self, user: U) -> UserOrganizations where
U: Into<String>,
U: Into<String>,
Return a reference to the collection of organizations a user is publicly associated with
fn user_gists<O>(&self, owner: O) -> UserGists where
O: Into<String>,
O: Into<String>,
Return a reference to an interface that provides access to a user's gists
fn gists(&self) -> Gists
Return a reference to an interface that provides access to the gists belonging to the owner of the token used to configure this client
fn search(&self) -> Search
Return a reference to an interface that provides access to search operations
fn org_repos<O>(&self, org: O) -> OrganizationRepositories where
O: Into<String>,
O: Into<String>,
Return a reference to the collection of repositories owned by and associated with an organization