#[non_exhaustive]pub struct JwtBearerProperties {
pub token_url: Option<ConnectorProperty>,
pub request_method: Option<HttpMethod>,
pub content_type: Option<ContentType>,
pub jwt_token: Option<ConnectorProperty>,
pub token_url_parameters: Option<Vec<ConnectorProperty>>,
}Expand description
JWT bearer token configuration that defines the properties needed for the JWT Bearer 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 JWT bearer token will be exchanged for an access token.
request_method: Option<HttpMethod>The HTTP method to use when making JWT bearer token requests, typically POST.
content_type: Option<ContentType>The content type to use for JWT bearer token requests, such as application/x-www-form-urlencoded or application/json.
jwt_token: Option<ConnectorProperty>The JWT token to be used in the bearer token grant flow for authentication.
token_url_parameters: Option<Vec<ConnectorProperty>>Additional parameters to include in token URL requests as key-value pairs.
Implementations§
Source§impl JwtBearerProperties
impl JwtBearerProperties
Sourcepub fn token_url(&self) -> Option<&ConnectorProperty>
pub fn token_url(&self) -> Option<&ConnectorProperty>
The token endpoint URL where the JWT bearer token will be exchanged for an access token.
Sourcepub fn request_method(&self) -> Option<&HttpMethod>
pub fn request_method(&self) -> Option<&HttpMethod>
The HTTP method to use when making JWT bearer token requests, typically POST.
Sourcepub fn content_type(&self) -> Option<&ContentType>
pub fn content_type(&self) -> Option<&ContentType>
The content type to use for JWT bearer token requests, such as application/x-www-form-urlencoded or application/json.
Sourcepub fn jwt_token(&self) -> Option<&ConnectorProperty>
pub fn jwt_token(&self) -> Option<&ConnectorProperty>
The JWT token to be used in the bearer token grant flow for authentication.
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 JwtBearerProperties
impl JwtBearerProperties
Sourcepub fn builder() -> JwtBearerPropertiesBuilder
pub fn builder() -> JwtBearerPropertiesBuilder
Creates a new builder-style object to manufacture JwtBearerProperties.
Trait Implementations§
Source§impl Clone for JwtBearerProperties
impl Clone for JwtBearerProperties
Source§fn clone(&self) -> JwtBearerProperties
fn clone(&self) -> JwtBearerProperties
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 JwtBearerProperties
impl Debug for JwtBearerProperties
Source§impl PartialEq for JwtBearerProperties
impl PartialEq for JwtBearerProperties
Source§fn eq(&self, other: &JwtBearerProperties) -> bool
fn eq(&self, other: &JwtBearerProperties) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JwtBearerProperties
Auto Trait Implementations§
impl Freeze for JwtBearerProperties
impl RefUnwindSafe for JwtBearerProperties
impl Send for JwtBearerProperties
impl Sync for JwtBearerProperties
impl Unpin for JwtBearerProperties
impl UnsafeUnpin for JwtBearerProperties
impl UnwindSafe for JwtBearerProperties
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