#[non_exhaustive]pub struct CustomConnectorProfileCredentials {
pub authentication_type: AuthenticationType,
pub basic: Option<BasicAuthCredentials>,
pub oauth2: Option<OAuth2Credentials>,
pub api_key: Option<ApiKeyCredentials>,
pub custom: Option<CustomAuthCredentials>,
}
Expand description
The connector-specific profile credentials that are required when using the custom connector.
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.authentication_type: AuthenticationType
The authentication type that the custom connector uses for authenticating while creating a connector profile.
basic: Option<BasicAuthCredentials>
The basic credentials that are required for the authentication of the user.
oauth2: Option<OAuth2Credentials>
The OAuth 2.0 credentials required for the authentication of the user.
api_key: Option<ApiKeyCredentials>
The API keys required for the authentication of the user.
custom: Option<CustomAuthCredentials>
If the connector uses the custom authentication mechanism, this holds the required credentials.
Implementations§
source§impl CustomConnectorProfileCredentials
impl CustomConnectorProfileCredentials
sourcepub fn authentication_type(&self) -> &AuthenticationType
pub fn authentication_type(&self) -> &AuthenticationType
The authentication type that the custom connector uses for authenticating while creating a connector profile.
sourcepub fn basic(&self) -> Option<&BasicAuthCredentials>
pub fn basic(&self) -> Option<&BasicAuthCredentials>
The basic credentials that are required for the authentication of the user.
sourcepub fn oauth2(&self) -> Option<&OAuth2Credentials>
pub fn oauth2(&self) -> Option<&OAuth2Credentials>
The OAuth 2.0 credentials required for the authentication of the user.
sourcepub fn api_key(&self) -> Option<&ApiKeyCredentials>
pub fn api_key(&self) -> Option<&ApiKeyCredentials>
The API keys required for the authentication of the user.
sourcepub fn custom(&self) -> Option<&CustomAuthCredentials>
pub fn custom(&self) -> Option<&CustomAuthCredentials>
If the connector uses the custom authentication mechanism, this holds the required credentials.
source§impl CustomConnectorProfileCredentials
impl CustomConnectorProfileCredentials
sourcepub fn builder() -> CustomConnectorProfileCredentialsBuilder
pub fn builder() -> CustomConnectorProfileCredentialsBuilder
Creates a new builder-style object to manufacture CustomConnectorProfileCredentials
.
Trait Implementations§
source§impl Clone for CustomConnectorProfileCredentials
impl Clone for CustomConnectorProfileCredentials
source§fn clone(&self) -> CustomConnectorProfileCredentials
fn clone(&self) -> CustomConnectorProfileCredentials
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for CustomConnectorProfileCredentials
impl PartialEq for CustomConnectorProfileCredentials
source§fn eq(&self, other: &CustomConnectorProfileCredentials) -> bool
fn eq(&self, other: &CustomConnectorProfileCredentials) -> bool
self
and other
values to be equal, and is used
by ==
.