Struct ghrs::Client[][src]

pub struct Client { /* fields omitted */ }

A client for GitHub v3 API.

Implementations

impl Client[src]

pub fn new() -> Client[src]

Create a Client.

pub fn token(self, token: impl Into<String>) -> Self[src]

Set a personal access token.

let client = ghrs::Client::new();
let issues = client.token("your_token").issues("owner", "repo").list().send();

pub fn base_url(self, base_url: impl Into<String>) -> Self[src]

Set a base URL.

let client = ghrs::Client::new();
let issues = client.base_url("https://github.your_company.com/api/v3").token("your_token").issues("owner", "repo").list().send();

pub fn issues(
    &self,
    owner: impl Into<String>,
    repo: impl Into<String>
) -> IssuesHandler<'_>
[src]

pub fn pulls(
    &self,
    owner: impl Into<String>,
    repo: impl Into<String>
) -> PullsHandler<'_>
[src]

pub fn events(&self) -> EventsHandler<'_>[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.