Expand description
Entry point interface for interacting with Github API
Implementations
sourceimpl<C> Github<C>where
C: Clone + Connect + 'static,
impl<C> Github<C>where
C: Clone + Connect + 'static,
pub fn custom<H, A, CR>(
host: H,
agent: A,
credentials: CR,
http: Client<C>
) -> Selfwhere
H: Into<String>,
A: Into<String>,
CR: Into<Option<Credentials>>,
pub fn rate_limit(&self) -> RateLimit<C>
sourcepub fn repo<O, R>(&self, owner: O, repo: R) -> Repository<C>where
O: Into<String>,
R: Into<String>,
pub fn repo<O, R>(&self, owner: O, repo: R) -> Repository<C>where
O: Into<String>,
R: Into<String>,
Return a reference to a Github repository
sourcepub fn user_repos<S>(&self, owner: S) -> UserRepositories<C>where
S: Into<String>,
pub fn user_repos<S>(&self, owner: S) -> UserRepositories<C>where
S: Into<String>,
Return a reference to the collection of repositories owned by and associated with an owner
sourcepub fn repos(&self) -> Repositories<C>
pub fn repos(&self) -> Repositories<C>
Return a reference to the collection of repositories owned by the user associated with the current authentication credentials
pub fn org<O>(&self, org: O) -> Organization<C>where
O: Into<String>,
sourcepub fn orgs(&self) -> Organizations<C>
pub fn orgs(&self) -> Organizations<C>
Return a reference to the collection of organizations that the user associated with the current authentication credentials is in
sourcepub fn users(&self) -> Users<C>
pub fn users(&self) -> Users<C>
Return a reference to an interface that provides access to user information.
sourcepub fn user_orgs<U>(&self, user: U) -> UserOrganizations<C>where
U: Into<String>,
pub fn user_orgs<U>(&self, user: U) -> UserOrganizations<C>where
U: Into<String>,
Return a reference to the collection of organizations a user is publicly associated with
sourcepub fn user_gists<O>(&self, owner: O) -> UserGists<C>where
O: Into<String>,
pub fn user_gists<O>(&self, owner: O) -> UserGists<C>where
O: Into<String>,
Return a reference to an interface that provides access to a user’s gists
sourcepub fn gists(&self) -> Gists<C>
pub fn gists(&self) -> Gists<C>
Return a reference to an interface that provides access to the gists belonging to the owner of the token used to configure this client
sourcepub fn search(&self) -> Search<C>
pub fn search(&self) -> Search<C>
Return a reference to an interface that provides access to search operations
sourcepub fn org_repos<O>(&self, org: O) -> OrganizationRepositories<C>where
O: Into<String>,
pub fn org_repos<O>(&self, org: O) -> OrganizationRepositories<C>where
O: Into<String>,
Return a reference to the collection of repositories owned by and associated with an organization