Struct githuber::Githuber[][src]

pub struct Githuber {
    pub http_client: HttpClient,
}

Fields

http_client: HttpClient

Implementations

impl Githuber[src]

pub const API_BASE_URL: &'static str[src]

pub fn new(oauth_token: impl AsRef<str>) -> Self[src]

pub async fn download(
    &self,
    url: impl AsRef<str>
) -> Result<Response<IsahcBody>, Error>
[src]

pub async fn send<B>(
    &self,
    request: impl GithubApi<B>
) -> Result<Response<IsahcBody>, Error> where
    B: Into<IsahcBody>, 
[src]

pub fn send_sync<B>(
    &self,
    request: impl GithubApi<B>
) -> Result<Response<IsahcBodySync>, Error> where
    B: Into<IsahcBodySync>, 
[src]

pub async fn send_with_pager<B>(
    &self,
    request: impl GithubApi<B>,
    pager: &mut Pager
) -> Result<Response<IsahcBody>, Error> where
    B: Into<IsahcBody>, 
[src]

Trait Implementations

impl Clone for Githuber[src]

impl Debug for Githuber[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> 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.

impl<T> WithSubscriber for T[src]