pub struct RefreshTokenFlow { /* private fields */ }Expand description
Refresh Token flow helper.
Implementations§
Source§impl RefreshTokenFlow
impl RefreshTokenFlow
Sourcepub fn new<I, Sec, U>(
client_id: I,
client_secret: Option<Sec>,
token_url: U,
) -> Self
pub fn new<I, Sec, U>( client_id: I, client_secret: Option<Sec>, token_url: U, ) -> Self
Constructs a new refresh token helper.
Sourcepub async fn execute<C: OAuthHttpClient>(
&self,
http_client: &C,
refresh_token: &str,
) -> Result<Token, OAuthError>
pub async fn execute<C: OAuthHttpClient>( &self, http_client: &C, refresh_token: &str, ) -> Result<Token, OAuthError>
Execute refresh token flow, returning a new access token.
Auto Trait Implementations§
impl Freeze for RefreshTokenFlow
impl RefUnwindSafe for RefreshTokenFlow
impl Send for RefreshTokenFlow
impl Sync for RefreshTokenFlow
impl Unpin for RefreshTokenFlow
impl UnwindSafe for RefreshTokenFlow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more