pub struct TokenRefreshParams {
pub token_url: Url,
pub refresh_token: String,
pub client_id: String,
pub token_format: TokenFormat,
}Expand description
Parameters for the token refresh request body.
This is a pure data structure — the actual HTTP POST is performed by the
I/O layer. Corresponds to an OAuth 2.0 grant_type=refresh_token request.
Fields§
§token_url: UrlThe token endpoint URL.
refresh_token: StringThe refresh token to exchange for a new access token.
client_id: StringThe OAuth client identifier.
token_format: TokenFormatThe body format for the token endpoint request.
Implementations§
Trait Implementations§
Source§impl Clone for TokenRefreshParams
impl Clone for TokenRefreshParams
Source§fn clone(&self) -> TokenRefreshParams
fn clone(&self) -> TokenRefreshParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TokenRefreshParams
impl RefUnwindSafe for TokenRefreshParams
impl Send for TokenRefreshParams
impl Sync for TokenRefreshParams
impl Unpin for TokenRefreshParams
impl UnsafeUnpin for TokenRefreshParams
impl UnwindSafe for TokenRefreshParams
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