[][src]Struct strava_auth::TokenApi

pub struct TokenApi {
    pub configuration: Rc<Configuration>,
}

Fields

configuration: Rc<Configuration>

Methods

impl TokenApi[src]

pub fn new(configuration: Rc<Configuration>) -> TokenApi[src]

pub async fn create_access_token<'_>(
    &'_ self,
    authorization_code: String
) -> Result<TokenRecord, Box<dyn Error + Send + Sync + 'static>>
[src]

pub async fn refresh_access_token<'_>(
    &'_ self,
    refresh_token: String
) -> Result<TokenRecord, Box<dyn Error + Send + Sync + 'static>>
[src]

Auto Trait Implementations

impl !RefUnwindSafe for TokenApi

impl !Send for TokenApi

impl !Sync for TokenApi

impl Unpin for TokenApi

impl UnwindSafe for TokenApi

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.