Struct hubcaps::Github
[−]
[src]
pub struct Github<C> where
C: Clone + Connect, { /* fields omitted */ }
Entry point interface for interacting with Github API
Methods
impl Github<HttpsConnector<HttpConnector>>
[src]
fn new<A>(agent: A, credentials: Option<Credentials>, handle: &Handle) -> Self where
A: Into<String>,
[src]
A: Into<String>,
fn host<H, A>(
host: H,
agent: A,
credentials: Option<Credentials>,
handle: &Handle
) -> Self where
H: Into<String>,
A: Into<String>,
[src]
host: H,
agent: A,
credentials: Option<Credentials>,
handle: &Handle
) -> Self where
H: Into<String>,
A: Into<String>,
impl<C> Github<C> where
C: Clone + Connect,
[src]
C: Clone + Connect,
fn custom<H, A>(
host: H,
agent: A,
credentials: Option<Credentials>,
http: Client<C>
) -> Self where
H: Into<String>,
A: Into<String>,
[src]
host: H,
agent: A,
credentials: Option<Credentials>,
http: Client<C>
) -> Self where
H: Into<String>,
A: Into<String>,
fn activity(&self) -> Activity<C>
[src]
Return a reference to user activity
fn repo<O, R>(&self, owner: O, repo: R) -> Repository<C> where
O: Into<String>,
R: Into<String>,
[src]
O: Into<String>,
R: Into<String>,
Return a reference to a Github repository
fn user_repos<S>(&self, owner: S) -> UserRepositories<C> where
S: Into<String>,
[src]
S: Into<String>,
Return a reference to the collection of repositories owned by and associated with an owner
fn repos(&self) -> Repositories<C>
[src]
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<C> where
O: Into<String>,
[src]
O: Into<String>,
fn orgs(&self) -> Organizations<C>
[src]
Return a reference to the collection of organizations that the user associated with the current authentication credentials is in
fn users(&self) -> Users<C>
[src]
Return a reference to an interface that provides access to user information.
fn user_orgs<U>(&self, user: U) -> UserOrganizations<C> where
U: Into<String>,
[src]
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<C> where
O: Into<String>,
[src]
O: Into<String>,
Return a reference to an interface that provides access to a user's gists
fn gists(&self) -> Gists<C>
[src]
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<C>
[src]
Return a reference to an interface that provides access to search operations
fn org_repos<O>(&self, org: O) -> OrganizationRepositories<C> where
O: Into<String>,
[src]
O: Into<String>,
Return a reference to the collection of repositories owned by and associated with an organization
Trait Implementations
impl<C: Clone> Clone for Github<C> where
C: Clone + Connect,
[src]
C: Clone + Connect,
fn clone(&self) -> Github<C>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<C: Debug> Debug for Github<C> where
C: Clone + Connect,
[src]
C: Clone + Connect,