Struct aws_sdk_appflow::types::OAuth2Credentials
source · #[non_exhaustive]pub struct OAuth2Credentials { /* private fields */ }
Expand description
The OAuth 2.0 credentials required for OAuth 2.0 authentication.
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
Returns a copy of the value. Read more
1.0.0 · 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 OAuth2Credentials
impl Debug for OAuth2Credentials
source§impl PartialEq<OAuth2Credentials> for OAuth2Credentials
impl PartialEq<OAuth2Credentials> for OAuth2Credentials
source§fn eq(&self, other: &OAuth2Credentials) -> bool
fn eq(&self, other: &OAuth2Credentials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OAuth2Credentials
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more