#[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: AuthenticationTypeThe 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 ==.impl StructuralPartialEq for CustomConnectorProfileCredentials
Auto Trait Implementations§
impl Freeze for CustomConnectorProfileCredentials
impl RefUnwindSafe for CustomConnectorProfileCredentials
impl Send for CustomConnectorProfileCredentials
impl Sync for CustomConnectorProfileCredentials
impl Unpin for CustomConnectorProfileCredentials
impl UnwindSafe for CustomConnectorProfileCredentials
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