#[non_exhaustive]pub struct JwtConfigurationBuilder { /* private fields */ }Expand description
A builder for JwtConfiguration.
Implementations§
source§impl JwtConfigurationBuilder
impl JwtConfigurationBuilder
sourcepub fn audience(self, input: impl Into<String>) -> Self
pub fn audience(self, input: impl Into<String>) -> Self
Appends an item to audience.
To override the contents of this collection use set_audience.
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
sourcepub fn set_audience(self, input: Option<Vec<String>>) -> Self
pub fn set_audience(self, input: Option<Vec<String>>) -> Self
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
sourcepub fn get_audience(&self) -> &Option<Vec<String>>
pub fn get_audience(&self) -> &Option<Vec<String>>
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
sourcepub fn issuer(self, input: impl Into<String>) -> Self
pub fn issuer(self, input: impl Into<String>) -> Self
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.
sourcepub fn set_issuer(self, input: Option<String>) -> Self
pub fn set_issuer(self, input: Option<String>) -> Self
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.
sourcepub fn get_issuer(&self) -> &Option<String>
pub fn get_issuer(&self) -> &Option<String>
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.
sourcepub fn build(self) -> JwtConfiguration
pub fn build(self) -> JwtConfiguration
Consumes the builder and constructs a JwtConfiguration.
Trait Implementations§
source§impl Clone for JwtConfigurationBuilder
impl Clone for JwtConfigurationBuilder
source§fn clone(&self) -> JwtConfigurationBuilder
fn clone(&self) -> JwtConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for JwtConfigurationBuilder
impl Debug for JwtConfigurationBuilder
source§impl Default for JwtConfigurationBuilder
impl Default for JwtConfigurationBuilder
source§fn default() -> JwtConfigurationBuilder
fn default() -> JwtConfigurationBuilder
source§impl PartialEq for JwtConfigurationBuilder
impl PartialEq for JwtConfigurationBuilder
source§fn eq(&self, other: &JwtConfigurationBuilder) -> bool
fn eq(&self, other: &JwtConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for JwtConfigurationBuilder
Auto Trait Implementations§
impl Freeze for JwtConfigurationBuilder
impl RefUnwindSafe for JwtConfigurationBuilder
impl Send for JwtConfigurationBuilder
impl Sync for JwtConfigurationBuilder
impl Unpin for JwtConfigurationBuilder
impl UnwindSafe for JwtConfigurationBuilder
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