pub struct RefreshAccessTokenRequest {
pub refresh_token: String,
pub options: ProviderOptions,
pub authentication: ClientAuthentication,
pub headers: BTreeMap<String, String>,
pub extra_params: BTreeMap<String, String>,
pub resource: Vec<String>,
}Fields§
§refresh_token: String§options: ProviderOptions§authentication: ClientAuthentication§headers: BTreeMap<String, String>§extra_params: BTreeMap<String, String>§resource: Vec<String>Implementations§
Source§impl RefreshAccessTokenRequest
impl RefreshAccessTokenRequest
pub fn try_new( refresh_token: impl Into<String>, options: ProviderOptions, ) -> Result<Self, OAuthError>
pub fn authentication(self, authentication: ClientAuthentication) -> Self
pub fn header(self, key: impl Into<String>, value: impl Into<String>) -> Self
Sourcepub fn extra_param(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn extra_param( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Adds a non-sensitive extension form field such as scope.
This is an extension-only API: security-critical keys (grant_type,
refresh_token, and client credential/authentication fields) and any
field already set by the builder are ignored when the request is built,
so a provider extension or caller-controlled value cannot replace
validated flow invariants or authenticated client credentials.
pub fn resource(self, resource: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for RefreshAccessTokenRequest
impl Clone for RefreshAccessTokenRequest
Source§fn clone(&self) -> RefreshAccessTokenRequest
fn clone(&self) -> RefreshAccessTokenRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefreshAccessTokenRequest
impl Debug for RefreshAccessTokenRequest
Source§impl Default for RefreshAccessTokenRequest
impl Default for RefreshAccessTokenRequest
impl Eq for RefreshAccessTokenRequest
Source§impl PartialEq for RefreshAccessTokenRequest
impl PartialEq for RefreshAccessTokenRequest
Source§fn eq(&self, other: &RefreshAccessTokenRequest) -> bool
fn eq(&self, other: &RefreshAccessTokenRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefreshAccessTokenRequest
Auto Trait Implementations§
impl Freeze for RefreshAccessTokenRequest
impl RefUnwindSafe for RefreshAccessTokenRequest
impl Send for RefreshAccessTokenRequest
impl Sync for RefreshAccessTokenRequest
impl Unpin for RefreshAccessTokenRequest
impl UnsafeUnpin for RefreshAccessTokenRequest
impl UnwindSafe for RefreshAccessTokenRequest
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