#[non_exhaustive]pub struct CustomConnectorProfileCredentials {
pub authentication_type: Option<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: Option<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
sourceimpl CustomConnectorProfileCredentials
impl CustomConnectorProfileCredentials
sourcepub fn authentication_type(&self) -> Option<&AuthenticationType>
pub fn authentication_type(&self) -> Option<&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.
sourceimpl CustomConnectorProfileCredentials
impl CustomConnectorProfileCredentials
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CustomConnectorProfileCredentials
Trait Implementations
sourceimpl Clone for CustomConnectorProfileCredentials
impl Clone for CustomConnectorProfileCredentials
sourcefn clone(&self) -> CustomConnectorProfileCredentials
fn clone(&self) -> CustomConnectorProfileCredentials
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<CustomConnectorProfileCredentials> for CustomConnectorProfileCredentials
impl PartialEq<CustomConnectorProfileCredentials> for CustomConnectorProfileCredentials
sourcefn eq(&self, other: &CustomConnectorProfileCredentials) -> bool
fn eq(&self, other: &CustomConnectorProfileCredentials) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CustomConnectorProfileCredentials) -> bool
fn ne(&self, other: &CustomConnectorProfileCredentials) -> bool
This method tests for !=
.
impl StructuralPartialEq for CustomConnectorProfileCredentials
Auto Trait Implementations
impl RefUnwindSafe for CustomConnectorProfileCredentials
impl Send for CustomConnectorProfileCredentials
impl Sync for CustomConnectorProfileCredentials
impl Unpin for CustomConnectorProfileCredentials
impl UnwindSafe for CustomConnectorProfileCredentials
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more