#[non_exhaustive]pub struct ClientCredentialsProperties {
pub token_url: Option<ConnectorProperty>,
pub request_method: Option<HttpMethod>,
pub content_type: Option<ContentType>,
pub client_id: Option<ConnectorProperty>,
pub client_secret: Option<ConnectorProperty>,
pub scope: Option<ConnectorProperty>,
pub token_url_parameters: Option<Vec<ConnectorProperty>>,
}Expand description
OAuth2 client credentials configuration that defines the properties needed for the Client Credentials grant type flow.
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.token_url: Option<ConnectorProperty>The token endpoint URL where the client will request access tokens using client credentials.
request_method: Option<HttpMethod>The HTTP method to use when making token requests, typically POST.
content_type: Option<ContentType>The content type to use for token requests, such as application/x-www-form-urlencoded or application/json.
client_id: Option<ConnectorProperty>The OAuth2 client identifier provided by the authorization server.
client_secret: Option<ConnectorProperty>The OAuth2 client secret provided by the authorization server.
scope: Option<ConnectorProperty>The OAuth2 scope that defines the level of access requested for the client credentials flow.
token_url_parameters: Option<Vec<ConnectorProperty>>Additional parameters to include in token URL requests as key-value pairs.
Implementations§
Source§impl ClientCredentialsProperties
impl ClientCredentialsProperties
Sourcepub fn token_url(&self) -> Option<&ConnectorProperty>
pub fn token_url(&self) -> Option<&ConnectorProperty>
The token endpoint URL where the client will request access tokens using client credentials.
Sourcepub fn request_method(&self) -> Option<&HttpMethod>
pub fn request_method(&self) -> Option<&HttpMethod>
The HTTP method to use when making token requests, typically POST.
Sourcepub fn content_type(&self) -> Option<&ContentType>
pub fn content_type(&self) -> Option<&ContentType>
The content type to use for token requests, such as application/x-www-form-urlencoded or application/json.
Sourcepub fn client_id(&self) -> Option<&ConnectorProperty>
pub fn client_id(&self) -> Option<&ConnectorProperty>
The OAuth2 client identifier provided by the authorization server.
Sourcepub fn client_secret(&self) -> Option<&ConnectorProperty>
pub fn client_secret(&self) -> Option<&ConnectorProperty>
The OAuth2 client secret provided by the authorization server.
Sourcepub fn scope(&self) -> Option<&ConnectorProperty>
pub fn scope(&self) -> Option<&ConnectorProperty>
The OAuth2 scope that defines the level of access requested for the client credentials flow.
Sourcepub fn token_url_parameters(&self) -> &[ConnectorProperty]
pub fn token_url_parameters(&self) -> &[ConnectorProperty]
Additional parameters to include in token URL requests as key-value pairs.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .token_url_parameters.is_none().
Source§impl ClientCredentialsProperties
impl ClientCredentialsProperties
Sourcepub fn builder() -> ClientCredentialsPropertiesBuilder
pub fn builder() -> ClientCredentialsPropertiesBuilder
Creates a new builder-style object to manufacture ClientCredentialsProperties.
Trait Implementations§
Source§impl Clone for ClientCredentialsProperties
impl Clone for ClientCredentialsProperties
Source§fn clone(&self) -> ClientCredentialsProperties
fn clone(&self) -> ClientCredentialsProperties
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 ClientCredentialsProperties
impl Debug for ClientCredentialsProperties
Source§impl PartialEq for ClientCredentialsProperties
impl PartialEq for ClientCredentialsProperties
Source§fn eq(&self, other: &ClientCredentialsProperties) -> bool
fn eq(&self, other: &ClientCredentialsProperties) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientCredentialsProperties
Auto Trait Implementations§
impl Freeze for ClientCredentialsProperties
impl RefUnwindSafe for ClientCredentialsProperties
impl Send for ClientCredentialsProperties
impl Sync for ClientCredentialsProperties
impl Unpin for ClientCredentialsProperties
impl UnsafeUnpin for ClientCredentialsProperties
impl UnwindSafe for ClientCredentialsProperties
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