#[non_exhaustive]pub struct OAuth2CredentialsBuilder { /* private fields */ }Expand description
A builder for OAuth2Credentials.
Implementations§
Source§impl OAuth2CredentialsBuilder
impl OAuth2CredentialsBuilder
Sourcepub fn user_managed_client_application_client_secret(
self,
input: impl Into<String>,
) -> Self
pub fn user_managed_client_application_client_secret( self, input: impl Into<String>, ) -> Self
The client application client secret if the client application is user managed.
Sourcepub fn set_user_managed_client_application_client_secret(
self,
input: Option<String>,
) -> Self
pub fn set_user_managed_client_application_client_secret( self, input: Option<String>, ) -> Self
The client application client secret if the client application is user managed.
Sourcepub fn get_user_managed_client_application_client_secret(
&self,
) -> &Option<String>
pub fn get_user_managed_client_application_client_secret( &self, ) -> &Option<String>
The client application client secret if the client application is user managed.
Sourcepub fn access_token(self, input: impl Into<String>) -> Self
pub fn access_token(self, input: impl Into<String>) -> Self
The access token used when the authentication type is OAuth2.
Sourcepub fn set_access_token(self, input: Option<String>) -> Self
pub fn set_access_token(self, input: Option<String>) -> Self
The access token used when the authentication type is OAuth2.
Sourcepub fn get_access_token(&self) -> &Option<String>
pub fn get_access_token(&self) -> &Option<String>
The access token used when the authentication type is OAuth2.
Sourcepub fn refresh_token(self, input: impl Into<String>) -> Self
pub fn refresh_token(self, input: impl Into<String>) -> Self
The refresh token used when the authentication type is OAuth2.
Sourcepub fn set_refresh_token(self, input: Option<String>) -> Self
pub fn set_refresh_token(self, input: Option<String>) -> Self
The refresh token used when the authentication type is OAuth2.
Sourcepub fn get_refresh_token(&self) -> &Option<String>
pub fn get_refresh_token(&self) -> &Option<String>
The refresh token used when the authentication type is OAuth2.
Sourcepub fn jwt_token(self, input: impl Into<String>) -> Self
pub fn jwt_token(self, input: impl Into<String>) -> Self
The JSON Web Token (JWT) used when the authentication type is OAuth2.
Sourcepub fn set_jwt_token(self, input: Option<String>) -> Self
pub fn set_jwt_token(self, input: Option<String>) -> Self
The JSON Web Token (JWT) used when the authentication type is OAuth2.
Sourcepub fn get_jwt_token(&self) -> &Option<String>
pub fn get_jwt_token(&self) -> &Option<String>
The JSON Web Token (JWT) used when the authentication type is OAuth2.
Sourcepub fn build(self) -> OAuth2Credentials
pub fn build(self) -> OAuth2Credentials
Consumes the builder and constructs a OAuth2Credentials.
Trait Implementations§
Source§impl Clone for OAuth2CredentialsBuilder
impl Clone for OAuth2CredentialsBuilder
Source§fn clone(&self) -> OAuth2CredentialsBuilder
fn clone(&self) -> OAuth2CredentialsBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OAuth2CredentialsBuilder
impl Debug for OAuth2CredentialsBuilder
Source§impl Default for OAuth2CredentialsBuilder
impl Default for OAuth2CredentialsBuilder
Source§fn default() -> OAuth2CredentialsBuilder
fn default() -> OAuth2CredentialsBuilder
Source§impl PartialEq for OAuth2CredentialsBuilder
impl PartialEq for OAuth2CredentialsBuilder
Source§fn eq(&self, other: &OAuth2CredentialsBuilder) -> bool
fn eq(&self, other: &OAuth2CredentialsBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OAuth2CredentialsBuilder
Auto Trait Implementations§
impl Freeze for OAuth2CredentialsBuilder
impl RefUnwindSafe for OAuth2CredentialsBuilder
impl Send for OAuth2CredentialsBuilder
impl Sync for OAuth2CredentialsBuilder
impl Unpin for OAuth2CredentialsBuilder
impl UnsafeUnpin for OAuth2CredentialsBuilder
impl UnwindSafe for OAuth2CredentialsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more