pub struct RefreshRequest<'a> { /* private fields */ }Expand description
One grant_type=refresh_token request.
Borrowed, like TokenRequest, so a refresh token is not copied around.
Implementations§
Source§impl<'a> RefreshRequest<'a>
impl<'a> RefreshRequest<'a>
Sourcepub const fn new(
refresh_token: &'a str,
client: &'a RegisteredClient,
resource: &'a ResourceParameters,
scope: Option<&'a str>,
) -> Self
pub const fn new( refresh_token: &'a str, client: &'a RegisteredClient, resource: &'a ResourceParameters, scope: Option<&'a str>, ) -> Self
A refresh of refresh_token as client, for the resource the grant
was bound to.
Sourcepub const fn refresh_token(&self) -> &'a str
pub const fn refresh_token(&self) -> &'a str
The refresh token being redeemed.
Sourcepub const fn client_secret(&self) -> Option<&'a ClientSecret>
pub const fn client_secret(&self) -> Option<&'a ClientSecret>
The secret, for a confidential client only; omitted otherwise.
Sourcepub const fn auth_method(&self) -> TokenAuthMethod
pub const fn auth_method(&self) -> TokenAuthMethod
How the client authenticates at the token endpoint.
Sourcepub const fn resource(&self) -> &'a ResourceParameters
pub const fn resource(&self) -> &'a ResourceParameters
The RFC 8707 resource indicators the grant is bound to.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RefreshRequest<'a>
impl<'a> RefUnwindSafe for RefreshRequest<'a>
impl<'a> Send for RefreshRequest<'a>
impl<'a> Sync for RefreshRequest<'a>
impl<'a> Unpin for RefreshRequest<'a>
impl<'a> UnsafeUnpin for RefreshRequest<'a>
impl<'a> UnwindSafe for RefreshRequest<'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