Struct aws_sdk_appflow::types::OAuth2Credentials
source · #[non_exhaustive]pub struct OAuth2Credentials {
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub access_token: Option<String>,
pub refresh_token: Option<String>,
pub o_auth_request: Option<ConnectorOAuthRequest>,
}
Expand description
The OAuth 2.0 credentials required for OAuth 2.0 authentication.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_id: Option<String>
The identifier for the desired client.
client_secret: Option<String>
The client secret used by the OAuth client to authenticate to the authorization server.
access_token: Option<String>
The access token used to access the connector on your behalf.
refresh_token: Option<String>
The refresh token used to refresh an expired access token.
o_auth_request: Option<ConnectorOAuthRequest>
Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.
Implementations§
source§impl OAuth2Credentials
impl OAuth2Credentials
sourcepub fn client_secret(&self) -> Option<&str>
pub fn client_secret(&self) -> Option<&str>
The client secret used by the OAuth client to authenticate to the authorization server.
sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
The access token used to access the connector on your behalf.
sourcepub fn refresh_token(&self) -> Option<&str>
pub fn refresh_token(&self) -> Option<&str>
The refresh token used to refresh an expired access token.
sourcepub fn o_auth_request(&self) -> Option<&ConnectorOAuthRequest>
pub fn o_auth_request(&self) -> Option<&ConnectorOAuthRequest>
Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.
source§impl OAuth2Credentials
impl OAuth2Credentials
sourcepub fn builder() -> OAuth2CredentialsBuilder
pub fn builder() -> OAuth2CredentialsBuilder
Creates a new builder-style object to manufacture OAuth2Credentials
.
Trait Implementations§
source§impl Clone for OAuth2Credentials
impl Clone for OAuth2Credentials
source§fn clone(&self) -> OAuth2Credentials
fn clone(&self) -> OAuth2Credentials
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OAuth2Credentials
impl Debug for OAuth2Credentials
source§impl PartialEq for OAuth2Credentials
impl PartialEq for OAuth2Credentials
source§fn eq(&self, other: &OAuth2Credentials) -> bool
fn eq(&self, other: &OAuth2Credentials) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OAuth2Credentials
Auto Trait Implementations§
impl Freeze for OAuth2Credentials
impl RefUnwindSafe for OAuth2Credentials
impl Send for OAuth2Credentials
impl Sync for OAuth2Credentials
impl Unpin for OAuth2Credentials
impl UnwindSafe for OAuth2Credentials
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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