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 ==
.