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]
A: Into<String>,
C: Into<Option<Credentials>>,
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]
H: Into<String>,
A: Into<String>,
C: Into<Option<Credentials>>,
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]
host: H,
agent: A,
credentials: CR,
http: Client
) -> Self where
H: Into<String>,
A: Into<String>,
CR: Into<Option<Credentials>>,
pub fn set_credentials<CR>(&mut self, credentials: CR) where
CR: Into<Option<Credentials>>,
[src]
CR: Into<Option<Credentials>>,
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]
O: Into<String>,
R: Into<String>,
Return a reference to a Github repository
pub fn user_repos<S>(&self, owner: S) -> UserRepositories where
S: Into<String>,
[src]
S: Into<String>,
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]
O: Into<String>,
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]
U: Into<String>,
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]
O: Into<String>,
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]
O: Into<String>,
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,