pub struct RefreshAccessTokenParams<'a> {
pub client_id: String,
pub refresh_token: SecretString,
pub scopes: HashSet<Cow<'a, str>>,
}
Available on crate feature
oauth2
only.Expand description
The refresh access token request parameters.
If the authorization server issued a refresh token to the client, the client makes a refresh request to the token endpoint by adding the following parameters using the “application/x-www-form-urlencoded” format with a character encoding of UTF-8 in the HTTP request entity-body.
Refs: https://datatracker.ietf.org/doc/html/rfc6749#section-6
Fields§
§client_id: String
§refresh_token: SecretString
§scopes: HashSet<Cow<'a, str>>
Implementations§
Source§impl<'a> RefreshAccessTokenParams<'a>
impl<'a> RefreshAccessTokenParams<'a>
pub fn new( client_id: impl ToString, refresh_token: impl Into<SecretString>, ) -> Self
pub fn to_serializer(&self) -> Serializer<'a, String>
Trait Implementations§
Source§impl<'a> Debug for RefreshAccessTokenParams<'a>
impl<'a> Debug for RefreshAccessTokenParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for RefreshAccessTokenParams<'a>
impl<'a> RefUnwindSafe for RefreshAccessTokenParams<'a>
impl<'a> Send for RefreshAccessTokenParams<'a>
impl<'a> Sync for RefreshAccessTokenParams<'a>
impl<'a> Unpin for RefreshAccessTokenParams<'a>
impl<'a> UnwindSafe for RefreshAccessTokenParams<'a>
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