Struct hubcaps_ex::Github[][src]

pub struct Github { /* fields omitted */ }

Entry point interface for interacting with GitHub API

Implementations

impl Github[src]

pub fn new<A, C>(agent: A, credentials: C) -> Result<Self> where
    A: Into<String>,
    C: Into<Option<Credentials>>, 
[src]

pub fn host<H, A, C>(host: H, agent: A, credentials: C) -> Result<Self> where
    H: Into<String>,
    A: Into<String>,
    C: Into<Option<Credentials>>, 
[src]

pub fn custom<H, A, CR>(
    host: H,
    agent: A,
    credentials: CR,
    http: Client
) -> Self where
    H: Into<String>,
    A: Into<String>,
    CR: Into<Option<Credentials>>, 
[src]

pub fn set_credentials<CR>(&mut self, credentials: CR) where
    CR: Into<Option<Credentials>>, 
[src]

pub fn rate_limit(&self) -> RateLimit[src]

pub fn activity(&self) -> Activity[src]

Return a reference to user activity

pub fn repo<O, R>(&self, owner: O, repo: R) -> Repository where
    O: Into<String>,
    R: Into<String>, 
[src]

Return a reference to a Github repository

pub fn user_repos<S>(&self, owner: S) -> UserRepositories where
    S: Into<String>, 
[src]

Return a reference to the collection of repositories owned by and associated with an owner

pub fn repos(&self) -> Repositories[src]

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 where
    O: Into<String>, 
[src]

pub fn orgs(&self) -> Organizations[src]

Return a reference to the collection of organizations that the user associated with the current authentication credentials is in

pub fn users(&self) -> Users[src]

Return a reference to an interface that provides access to user information.

pub fn user_orgs<U>(&self, user: U) -> UserOrganizations where
    U: Into<String>, 
[src]

Return a reference to the collection of organizations a user is publicly associated with

pub fn user_gists<O>(&self, owner: O) -> UserGists where
    O: Into<String>, 
[src]

Return a reference to an interface that provides access to a user’s gists

pub fn gists(&self) -> Gists[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

pub fn search(&self) -> Search[src]

Return a reference to an interface that provides access to search operations

pub fn org_repos<O>(&self, org: O) -> OrganizationRepositories where
    O: Into<String>, 
[src]

Return a reference to the collection of repositories owned by and associated with an organization

pub fn app(&self) -> App[src]

Return a reference to GitHub Apps

Trait Implementations

impl Clone for Github[src]

impl Debug for Github[src]

Auto Trait Implementations

impl !RefUnwindSafe for Github

impl Send for Github

impl Sync for Github

impl Unpin for Github

impl !UnwindSafe for Github

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.