[][src]Struct octocrab::current::CurrentAuthHandler

pub struct CurrentAuthHandler<'octo> { /* fields omitted */ }

Handler for the current authenication API. Note All of the methods provided below require at least some authenication such as personal token in order to be used.

Created with Octocrab::current.

Implementations

impl<'octo> CurrentAuthHandler<'octo>[src]

pub async fn user<'_>(&'_ self) -> Result<User>[src]

Fetches information about the current user.

Auto Trait Implementations

impl<'octo> !RefUnwindSafe for CurrentAuthHandler<'octo>

impl<'octo> Send for CurrentAuthHandler<'octo>

impl<'octo> Sync for CurrentAuthHandler<'octo>

impl<'octo> Unpin for CurrentAuthHandler<'octo>

impl<'octo> !UnwindSafe for CurrentAuthHandler<'octo>

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, 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.