#[non_exhaustive]pub struct PardotConnectorProfileCredentials {
pub access_token: Option<String>,
pub refresh_token: Option<String>,
pub o_auth_request: Option<ConnectorOAuthRequest>,
pub client_credentials_arn: Option<String>,
}Expand description
The connector-specific profile credentials required when using Salesforce Pardot.
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.access_token: Option<String>The credentials used to access protected Salesforce Pardot resources.
refresh_token: Option<String>The credentials used to acquire new access tokens.
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.
client_credentials_arn: Option<String>The secret manager ARN, which contains the client ID and client secret of the connected app.
Implementations§
source§impl PardotConnectorProfileCredentials
impl PardotConnectorProfileCredentials
sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
The credentials used to access protected Salesforce Pardot resources.
sourcepub fn refresh_token(&self) -> Option<&str>
pub fn refresh_token(&self) -> Option<&str>
The credentials used to acquire new access tokens.
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.
sourcepub fn client_credentials_arn(&self) -> Option<&str>
pub fn client_credentials_arn(&self) -> Option<&str>
The secret manager ARN, which contains the client ID and client secret of the connected app.
source§impl PardotConnectorProfileCredentials
impl PardotConnectorProfileCredentials
sourcepub fn builder() -> PardotConnectorProfileCredentialsBuilder
pub fn builder() -> PardotConnectorProfileCredentialsBuilder
Creates a new builder-style object to manufacture PardotConnectorProfileCredentials.
Trait Implementations§
source§impl Clone for PardotConnectorProfileCredentials
impl Clone for PardotConnectorProfileCredentials
source§fn clone(&self) -> PardotConnectorProfileCredentials
fn clone(&self) -> PardotConnectorProfileCredentials
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for PardotConnectorProfileCredentials
impl PartialEq for PardotConnectorProfileCredentials
source§fn eq(&self, other: &PardotConnectorProfileCredentials) -> bool
fn eq(&self, other: &PardotConnectorProfileCredentials) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PardotConnectorProfileCredentials
Auto Trait Implementations§
impl Freeze for PardotConnectorProfileCredentials
impl RefUnwindSafe for PardotConnectorProfileCredentials
impl Send for PardotConnectorProfileCredentials
impl Sync for PardotConnectorProfileCredentials
impl Unpin for PardotConnectorProfileCredentials
impl UnwindSafe for PardotConnectorProfileCredentials
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> 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