#[non_exhaustive]pub struct ConnectorOAuth2Properties {
pub o_auth2_grant_type: ConnectorOAuth2GrantType,
pub client_credentials_properties: Option<ClientCredentialsProperties>,
pub jwt_bearer_properties: Option<JwtBearerProperties>,
pub authorization_code_properties: Option<ConnectorAuthorizationCodeProperties>,
}Expand description
OAuth2 configuration container that defines the authentication properties and flow-specific configurations for OAuth2-based connections.
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.o_auth2_grant_type: ConnectorOAuth2GrantTypeThe OAuth2 grant type to use for authentication, such as CLIENT_CREDENTIALS, JWT_BEARER, or AUTHORIZATION_CODE.
client_credentials_properties: Option<ClientCredentialsProperties>Configuration properties specific to the OAuth2 Client Credentials grant type flow.
jwt_bearer_properties: Option<JwtBearerProperties>Configuration properties specific to the OAuth2 JWT Bearer grant type flow.
Configuration properties specific to the OAuth2 Authorization Code grant type flow.
Implementations§
Source§impl ConnectorOAuth2Properties
impl ConnectorOAuth2Properties
Sourcepub fn o_auth2_grant_type(&self) -> &ConnectorOAuth2GrantType
pub fn o_auth2_grant_type(&self) -> &ConnectorOAuth2GrantType
The OAuth2 grant type to use for authentication, such as CLIENT_CREDENTIALS, JWT_BEARER, or AUTHORIZATION_CODE.
Sourcepub fn client_credentials_properties(
&self,
) -> Option<&ClientCredentialsProperties>
pub fn client_credentials_properties( &self, ) -> Option<&ClientCredentialsProperties>
Configuration properties specific to the OAuth2 Client Credentials grant type flow.
Sourcepub fn jwt_bearer_properties(&self) -> Option<&JwtBearerProperties>
pub fn jwt_bearer_properties(&self) -> Option<&JwtBearerProperties>
Configuration properties specific to the OAuth2 JWT Bearer grant type flow.
Configuration properties specific to the OAuth2 Authorization Code grant type flow.
Source§impl ConnectorOAuth2Properties
impl ConnectorOAuth2Properties
Sourcepub fn builder() -> ConnectorOAuth2PropertiesBuilder
pub fn builder() -> ConnectorOAuth2PropertiesBuilder
Creates a new builder-style object to manufacture ConnectorOAuth2Properties.
Trait Implementations§
Source§impl Clone for ConnectorOAuth2Properties
impl Clone for ConnectorOAuth2Properties
Source§fn clone(&self) -> ConnectorOAuth2Properties
fn clone(&self) -> ConnectorOAuth2Properties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectorOAuth2Properties
impl Debug for ConnectorOAuth2Properties
Source§impl PartialEq for ConnectorOAuth2Properties
impl PartialEq for ConnectorOAuth2Properties
Source§fn eq(&self, other: &ConnectorOAuth2Properties) -> bool
fn eq(&self, other: &ConnectorOAuth2Properties) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConnectorOAuth2Properties
Auto Trait Implementations§
impl Freeze for ConnectorOAuth2Properties
impl RefUnwindSafe for ConnectorOAuth2Properties
impl Send for ConnectorOAuth2Properties
impl Sync for ConnectorOAuth2Properties
impl Unpin for ConnectorOAuth2Properties
impl UnsafeUnpin for ConnectorOAuth2Properties
impl UnwindSafe for ConnectorOAuth2Properties
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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