pub struct ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata,
AD: AuthDisplay,
CA: ClientAuthMethod,
CN: ClaimName,
CT: ClaimType,
G: GrantType,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType>,
JK: JweKeyManagementAlgorithm,
K: JsonWebKey,
RM: ResponseMode,
RT: ResponseType,
S: SubjectIdentifierType,{ /* private fields */ }
Expand description
Provider metadata returned by OpenID Connect Discovery.
Implementations§
Source§impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata,
AD: AuthDisplay,
CA: ClientAuthMethod,
CN: ClaimName,
CT: ClaimType,
G: GrantType,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType>,
JK: JweKeyManagementAlgorithm,
K: JsonWebKey,
RM: ResponseMode,
RT: ResponseType,
S: SubjectIdentifierType,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata,
AD: AuthDisplay,
CA: ClientAuthMethod,
CN: ClaimName,
CT: ClaimType,
G: GrantType,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType>,
JK: JweKeyManagementAlgorithm,
K: JsonWebKey,
RM: ResponseMode,
RT: ResponseType,
S: SubjectIdentifierType,
Sourcepub fn new(
issuer: IssuerUrl,
authorization_endpoint: AuthUrl,
jwks_uri: JsonWebKeySetUrl,
response_types_supported: Vec<ResponseTypes<RT>>,
subject_types_supported: Vec<S>,
id_token_signing_alg_values_supported: Vec<K::SigningAlgorithm>,
additional_metadata: A,
) -> Self
pub fn new( issuer: IssuerUrl, authorization_endpoint: AuthUrl, jwks_uri: JsonWebKeySetUrl, response_types_supported: Vec<ResponseTypes<RT>>, subject_types_supported: Vec<S>, id_token_signing_alg_values_supported: Vec<K::SigningAlgorithm>, additional_metadata: A, ) -> Self
Instantiates new provider metadata.
Sourcepub fn set_issuer(self, issuer: IssuerUrl) -> Self
pub fn set_issuer(self, issuer: IssuerUrl) -> Self
Sets the issuer
provider metadata value.
Returns the authorization_endpoint
provider metadata value.
Sets the authorization_endpoint
provider metadata value.
Sourcepub fn token_endpoint(&self) -> Option<&TokenUrl>
pub fn token_endpoint(&self) -> Option<&TokenUrl>
Returns the token_endpoint
provider metadata value.
Sourcepub fn set_token_endpoint(self, token_endpoint: Option<TokenUrl>) -> Self
pub fn set_token_endpoint(self, token_endpoint: Option<TokenUrl>) -> Self
Sets the token_endpoint
provider metadata value.
Sourcepub fn userinfo_endpoint(&self) -> Option<&UserInfoUrl>
pub fn userinfo_endpoint(&self) -> Option<&UserInfoUrl>
Returns the userinfo_endpoint
provider metadata value.
Sourcepub fn set_userinfo_endpoint(
self,
userinfo_endpoint: Option<UserInfoUrl>,
) -> Self
pub fn set_userinfo_endpoint( self, userinfo_endpoint: Option<UserInfoUrl>, ) -> Self
Sets the userinfo_endpoint
provider metadata value.
Sourcepub fn jwks_uri(&self) -> &JsonWebKeySetUrl
pub fn jwks_uri(&self) -> &JsonWebKeySetUrl
Returns the jwks_uri
provider metadata value.
Sourcepub fn set_jwks_uri(self, jwks_uri: JsonWebKeySetUrl) -> Self
pub fn set_jwks_uri(self, jwks_uri: JsonWebKeySetUrl) -> Self
Sets the jwks_uri
provider metadata value.
Sourcepub fn jwks(&self) -> &JsonWebKeySet<K>
pub fn jwks(&self) -> &JsonWebKeySet<K>
Returns the jwks
provider metadata value.
Sourcepub fn set_jwks(self, jwks: JsonWebKeySet<K>) -> Self
pub fn set_jwks(self, jwks: JsonWebKeySet<K>) -> Self
Sets the jwks
provider metadata value.
Sourcepub fn registration_endpoint(&self) -> Option<&RegistrationUrl>
pub fn registration_endpoint(&self) -> Option<&RegistrationUrl>
Returns the registration_endpoint
provider metadata value.
Sourcepub fn set_registration_endpoint(
self,
registration_endpoint: Option<RegistrationUrl>,
) -> Self
pub fn set_registration_endpoint( self, registration_endpoint: Option<RegistrationUrl>, ) -> Self
Sets the registration_endpoint
provider metadata value.
Sourcepub fn scopes_supported(&self) -> Option<&Vec<Scope>>
pub fn scopes_supported(&self) -> Option<&Vec<Scope>>
Returns the scopes_supported
provider metadata value.
Sourcepub fn set_scopes_supported(self, scopes_supported: Option<Vec<Scope>>) -> Self
pub fn set_scopes_supported(self, scopes_supported: Option<Vec<Scope>>) -> Self
Sets the scopes_supported
provider metadata value.
Sourcepub fn response_types_supported(&self) -> &Vec<ResponseTypes<RT>>
pub fn response_types_supported(&self) -> &Vec<ResponseTypes<RT>>
Returns the response_types_supported
provider metadata value.
Sourcepub fn set_response_types_supported(
self,
response_types_supported: Vec<ResponseTypes<RT>>,
) -> Self
pub fn set_response_types_supported( self, response_types_supported: Vec<ResponseTypes<RT>>, ) -> Self
Sets the response_types_supported
provider metadata value.
Sourcepub fn response_modes_supported(&self) -> Option<&Vec<RM>>
pub fn response_modes_supported(&self) -> Option<&Vec<RM>>
Returns the response_modes_supported
provider metadata value.
Sourcepub fn set_response_modes_supported(
self,
response_modes_supported: Option<Vec<RM>>,
) -> Self
pub fn set_response_modes_supported( self, response_modes_supported: Option<Vec<RM>>, ) -> Self
Sets the response_modes_supported
provider metadata value.
Sourcepub fn grant_types_supported(&self) -> Option<&Vec<G>>
pub fn grant_types_supported(&self) -> Option<&Vec<G>>
Returns the grant_types_supported
provider metadata value.
Sourcepub fn set_grant_types_supported(
self,
grant_types_supported: Option<Vec<G>>,
) -> Self
pub fn set_grant_types_supported( self, grant_types_supported: Option<Vec<G>>, ) -> Self
Sets the grant_types_supported
provider metadata value.
Sourcepub fn acr_values_supported(&self) -> Option<&Vec<AuthenticationContextClass>>
pub fn acr_values_supported(&self) -> Option<&Vec<AuthenticationContextClass>>
Returns the acr_values_supported
provider metadata value.
Sourcepub fn set_acr_values_supported(
self,
acr_values_supported: Option<Vec<AuthenticationContextClass>>,
) -> Self
pub fn set_acr_values_supported( self, acr_values_supported: Option<Vec<AuthenticationContextClass>>, ) -> Self
Sets the acr_values_supported
provider metadata value.
Sourcepub fn subject_types_supported(&self) -> &Vec<S>
pub fn subject_types_supported(&self) -> &Vec<S>
Returns the subject_types_supported
provider metadata value.
Sourcepub fn set_subject_types_supported(
self,
subject_types_supported: Vec<S>,
) -> Self
pub fn set_subject_types_supported( self, subject_types_supported: Vec<S>, ) -> Self
Sets the subject_types_supported
provider metadata value.
Sourcepub fn id_token_signing_alg_values_supported(&self) -> &Vec<K::SigningAlgorithm>
pub fn id_token_signing_alg_values_supported(&self) -> &Vec<K::SigningAlgorithm>
Returns the id_token_signing_alg_values_supported
provider metadata value.
Sourcepub fn set_id_token_signing_alg_values_supported(
self,
id_token_signing_alg_values_supported: Vec<K::SigningAlgorithm>,
) -> Self
pub fn set_id_token_signing_alg_values_supported( self, id_token_signing_alg_values_supported: Vec<K::SigningAlgorithm>, ) -> Self
Sets the id_token_signing_alg_values_supported
provider metadata value.
Sourcepub fn id_token_encryption_alg_values_supported(&self) -> Option<&Vec<JK>>
pub fn id_token_encryption_alg_values_supported(&self) -> Option<&Vec<JK>>
Returns the id_token_encryption_alg_values_supported
provider metadata value.
Sourcepub fn set_id_token_encryption_alg_values_supported(
self,
id_token_encryption_alg_values_supported: Option<Vec<JK>>,
) -> Self
pub fn set_id_token_encryption_alg_values_supported( self, id_token_encryption_alg_values_supported: Option<Vec<JK>>, ) -> Self
Sets the id_token_encryption_alg_values_supported
provider metadata value.
Sourcepub fn id_token_encryption_enc_values_supported(&self) -> Option<&Vec<JE>>
pub fn id_token_encryption_enc_values_supported(&self) -> Option<&Vec<JE>>
Returns the id_token_encryption_enc_values_supported
provider metadata value.
Sourcepub fn set_id_token_encryption_enc_values_supported(
self,
id_token_encryption_enc_values_supported: Option<Vec<JE>>,
) -> Self
pub fn set_id_token_encryption_enc_values_supported( self, id_token_encryption_enc_values_supported: Option<Vec<JE>>, ) -> Self
Sets the id_token_encryption_enc_values_supported
provider metadata value.
Sourcepub fn userinfo_signing_alg_values_supported(
&self,
) -> Option<&Vec<K::SigningAlgorithm>>
pub fn userinfo_signing_alg_values_supported( &self, ) -> Option<&Vec<K::SigningAlgorithm>>
Returns the userinfo_signing_alg_values_supported
provider metadata value.
Sourcepub fn set_userinfo_signing_alg_values_supported(
self,
userinfo_signing_alg_values_supported: Option<Vec<K::SigningAlgorithm>>,
) -> Self
pub fn set_userinfo_signing_alg_values_supported( self, userinfo_signing_alg_values_supported: Option<Vec<K::SigningAlgorithm>>, ) -> Self
Sets the userinfo_signing_alg_values_supported
provider metadata value.
Sourcepub fn userinfo_encryption_alg_values_supported(&self) -> Option<&Vec<JK>>
pub fn userinfo_encryption_alg_values_supported(&self) -> Option<&Vec<JK>>
Returns the userinfo_encryption_alg_values_supported
provider metadata value.
Sourcepub fn set_userinfo_encryption_alg_values_supported(
self,
userinfo_encryption_alg_values_supported: Option<Vec<JK>>,
) -> Self
pub fn set_userinfo_encryption_alg_values_supported( self, userinfo_encryption_alg_values_supported: Option<Vec<JK>>, ) -> Self
Sets the userinfo_encryption_alg_values_supported
provider metadata value.
Sourcepub fn userinfo_encryption_enc_values_supported(&self) -> Option<&Vec<JE>>
pub fn userinfo_encryption_enc_values_supported(&self) -> Option<&Vec<JE>>
Returns the userinfo_encryption_enc_values_supported
provider metadata value.
Sourcepub fn set_userinfo_encryption_enc_values_supported(
self,
userinfo_encryption_enc_values_supported: Option<Vec<JE>>,
) -> Self
pub fn set_userinfo_encryption_enc_values_supported( self, userinfo_encryption_enc_values_supported: Option<Vec<JE>>, ) -> Self
Sets the userinfo_encryption_enc_values_supported
provider metadata value.
Sourcepub fn request_object_signing_alg_values_supported(
&self,
) -> Option<&Vec<K::SigningAlgorithm>>
pub fn request_object_signing_alg_values_supported( &self, ) -> Option<&Vec<K::SigningAlgorithm>>
Returns the request_object_signing_alg_values_supported
provider metadata value.
Sourcepub fn set_request_object_signing_alg_values_supported(
self,
request_object_signing_alg_values_supported: Option<Vec<K::SigningAlgorithm>>,
) -> Self
pub fn set_request_object_signing_alg_values_supported( self, request_object_signing_alg_values_supported: Option<Vec<K::SigningAlgorithm>>, ) -> Self
Sets the request_object_signing_alg_values_supported
provider metadata value.
Sourcepub fn request_object_encryption_alg_values_supported(&self) -> Option<&Vec<JK>>
pub fn request_object_encryption_alg_values_supported(&self) -> Option<&Vec<JK>>
Returns the request_object_encryption_alg_values_supported
provider metadata value.
Sourcepub fn set_request_object_encryption_alg_values_supported(
self,
request_object_encryption_alg_values_supported: Option<Vec<JK>>,
) -> Self
pub fn set_request_object_encryption_alg_values_supported( self, request_object_encryption_alg_values_supported: Option<Vec<JK>>, ) -> Self
Sets the request_object_encryption_alg_values_supported
provider metadata value.
Sourcepub fn request_object_encryption_enc_values_supported(&self) -> Option<&Vec<JE>>
pub fn request_object_encryption_enc_values_supported(&self) -> Option<&Vec<JE>>
Returns the request_object_encryption_enc_values_supported
provider metadata value.
Sourcepub fn set_request_object_encryption_enc_values_supported(
self,
request_object_encryption_enc_values_supported: Option<Vec<JE>>,
) -> Self
pub fn set_request_object_encryption_enc_values_supported( self, request_object_encryption_enc_values_supported: Option<Vec<JE>>, ) -> Self
Sets the request_object_encryption_enc_values_supported
provider metadata value.
Sourcepub fn token_endpoint_auth_methods_supported(&self) -> Option<&Vec<CA>>
pub fn token_endpoint_auth_methods_supported(&self) -> Option<&Vec<CA>>
Returns the token_endpoint_auth_methods_supported
provider metadata value.
Sourcepub fn set_token_endpoint_auth_methods_supported(
self,
token_endpoint_auth_methods_supported: Option<Vec<CA>>,
) -> Self
pub fn set_token_endpoint_auth_methods_supported( self, token_endpoint_auth_methods_supported: Option<Vec<CA>>, ) -> Self
Sets the token_endpoint_auth_methods_supported
provider metadata value.
Sourcepub fn token_endpoint_auth_signing_alg_values_supported(
&self,
) -> Option<&Vec<K::SigningAlgorithm>>
pub fn token_endpoint_auth_signing_alg_values_supported( &self, ) -> Option<&Vec<K::SigningAlgorithm>>
Returns the token_endpoint_auth_signing_alg_values_supported
provider metadata value.
Sourcepub fn set_token_endpoint_auth_signing_alg_values_supported(
self,
token_endpoint_auth_signing_alg_values_supported: Option<Vec<K::SigningAlgorithm>>,
) -> Self
pub fn set_token_endpoint_auth_signing_alg_values_supported( self, token_endpoint_auth_signing_alg_values_supported: Option<Vec<K::SigningAlgorithm>>, ) -> Self
Sets the token_endpoint_auth_signing_alg_values_supported
provider metadata value.
Sourcepub fn display_values_supported(&self) -> Option<&Vec<AD>>
pub fn display_values_supported(&self) -> Option<&Vec<AD>>
Returns the display_values_supported
provider metadata value.
Sourcepub fn set_display_values_supported(
self,
display_values_supported: Option<Vec<AD>>,
) -> Self
pub fn set_display_values_supported( self, display_values_supported: Option<Vec<AD>>, ) -> Self
Sets the display_values_supported
provider metadata value.
Sourcepub fn claim_types_supported(&self) -> Option<&Vec<CT>>
pub fn claim_types_supported(&self) -> Option<&Vec<CT>>
Returns the claim_types_supported
provider metadata value.
Sourcepub fn set_claim_types_supported(
self,
claim_types_supported: Option<Vec<CT>>,
) -> Self
pub fn set_claim_types_supported( self, claim_types_supported: Option<Vec<CT>>, ) -> Self
Sets the claim_types_supported
provider metadata value.
Sourcepub fn claims_supported(&self) -> Option<&Vec<CN>>
pub fn claims_supported(&self) -> Option<&Vec<CN>>
Returns the claims_supported
provider metadata value.
Sourcepub fn set_claims_supported(self, claims_supported: Option<Vec<CN>>) -> Self
pub fn set_claims_supported(self, claims_supported: Option<Vec<CN>>) -> Self
Sets the claims_supported
provider metadata value.
Sourcepub fn service_documentation(&self) -> Option<&ServiceDocUrl>
pub fn service_documentation(&self) -> Option<&ServiceDocUrl>
Returns the service_documentation
provider metadata value.
Sourcepub fn set_service_documentation(
self,
service_documentation: Option<ServiceDocUrl>,
) -> Self
pub fn set_service_documentation( self, service_documentation: Option<ServiceDocUrl>, ) -> Self
Sets the service_documentation
provider metadata value.
Sourcepub fn claims_locales_supported(&self) -> Option<&Vec<LanguageTag>>
pub fn claims_locales_supported(&self) -> Option<&Vec<LanguageTag>>
Returns the claims_locales_supported
provider metadata value.
Sourcepub fn set_claims_locales_supported(
self,
claims_locales_supported: Option<Vec<LanguageTag>>,
) -> Self
pub fn set_claims_locales_supported( self, claims_locales_supported: Option<Vec<LanguageTag>>, ) -> Self
Sets the claims_locales_supported
provider metadata value.
Sourcepub fn ui_locales_supported(&self) -> Option<&Vec<LanguageTag>>
pub fn ui_locales_supported(&self) -> Option<&Vec<LanguageTag>>
Returns the ui_locales_supported
provider metadata value.
Sourcepub fn set_ui_locales_supported(
self,
ui_locales_supported: Option<Vec<LanguageTag>>,
) -> Self
pub fn set_ui_locales_supported( self, ui_locales_supported: Option<Vec<LanguageTag>>, ) -> Self
Sets the ui_locales_supported
provider metadata value.
Sourcepub fn claims_parameter_supported(&self) -> Option<bool>
pub fn claims_parameter_supported(&self) -> Option<bool>
Returns the claims_parameter_supported
provider metadata value.
Sourcepub fn set_claims_parameter_supported(
self,
claims_parameter_supported: Option<bool>,
) -> Self
pub fn set_claims_parameter_supported( self, claims_parameter_supported: Option<bool>, ) -> Self
Sets the claims_parameter_supported
provider metadata value.
Sourcepub fn request_parameter_supported(&self) -> Option<bool>
pub fn request_parameter_supported(&self) -> Option<bool>
Returns the request_parameter_supported
provider metadata value.
Sourcepub fn set_request_parameter_supported(
self,
request_parameter_supported: Option<bool>,
) -> Self
pub fn set_request_parameter_supported( self, request_parameter_supported: Option<bool>, ) -> Self
Sets the request_parameter_supported
provider metadata value.
Sourcepub fn request_uri_parameter_supported(&self) -> Option<bool>
pub fn request_uri_parameter_supported(&self) -> Option<bool>
Returns the request_uri_parameter_supported
provider metadata value.
Sourcepub fn set_request_uri_parameter_supported(
self,
request_uri_parameter_supported: Option<bool>,
) -> Self
pub fn set_request_uri_parameter_supported( self, request_uri_parameter_supported: Option<bool>, ) -> Self
Sets the request_uri_parameter_supported
provider metadata value.
Sourcepub fn require_request_uri_registration(&self) -> Option<bool>
pub fn require_request_uri_registration(&self) -> Option<bool>
Returns the require_request_uri_registration
provider metadata value.
Sourcepub fn set_require_request_uri_registration(
self,
require_request_uri_registration: Option<bool>,
) -> Self
pub fn set_require_request_uri_registration( self, require_request_uri_registration: Option<bool>, ) -> Self
Sets the require_request_uri_registration
provider metadata value.
Sourcepub fn op_policy_uri(&self) -> Option<&OpPolicyUrl>
pub fn op_policy_uri(&self) -> Option<&OpPolicyUrl>
Returns the op_policy_uri
provider metadata value.
Sourcepub fn set_op_policy_uri(self, op_policy_uri: Option<OpPolicyUrl>) -> Self
pub fn set_op_policy_uri(self, op_policy_uri: Option<OpPolicyUrl>) -> Self
Sets the op_policy_uri
provider metadata value.
Sourcepub fn op_tos_uri(&self) -> Option<&OpTosUrl>
pub fn op_tos_uri(&self) -> Option<&OpTosUrl>
Returns the op_tos_uri
provider metadata value.
Sourcepub fn set_op_tos_uri(self, op_tos_uri: Option<OpTosUrl>) -> Self
pub fn set_op_tos_uri(self, op_tos_uri: Option<OpTosUrl>) -> Self
Sets the op_tos_uri
provider metadata value.
Sourcepub fn discover<C>(
issuer_url: &IssuerUrl,
http_client: &C,
) -> Result<Self, DiscoveryError<<C as SyncHttpClient>::Error>>where
C: SyncHttpClient,
pub fn discover<C>(
issuer_url: &IssuerUrl,
http_client: &C,
) -> Result<Self, DiscoveryError<<C as SyncHttpClient>::Error>>where
C: SyncHttpClient,
Fetches the OpenID Connect Discovery document and associated JSON Web Key Set from the OpenID Connect Provider.
Sourcepub fn discover_async<'c, C>(
issuer_url: IssuerUrl,
http_client: &'c C,
) -> impl Future<Output = Result<Self, DiscoveryError<<C as AsyncHttpClient<'c>>::Error>>> + 'cwhere
Self: 'c,
C: AsyncHttpClient<'c>,
pub fn discover_async<'c, C>(
issuer_url: IssuerUrl,
http_client: &'c C,
) -> impl Future<Output = Result<Self, DiscoveryError<<C as AsyncHttpClient<'c>>::Error>>> + 'cwhere
Self: 'c,
C: AsyncHttpClient<'c>,
Asynchronously fetches the OpenID Connect Discovery document and associated JSON Web Key Set from the OpenID Connect Provider.
Sourcepub fn additional_metadata(&self) -> &A
pub fn additional_metadata(&self) -> &A
Returns additional provider metadata fields.
Sourcepub fn additional_metadata_mut(&mut self) -> &mut A
pub fn additional_metadata_mut(&mut self) -> &mut A
Returns mutable additional provider metadata fields.
Trait Implementations§
Source§impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Clone for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + Clone,
AD: AuthDisplay + Clone,
CA: ClientAuthMethod + Clone,
CN: ClaimName + Clone,
CT: ClaimType + Clone,
G: GrantType + Clone,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType> + Clone,
JK: JweKeyManagementAlgorithm + Clone,
K: JsonWebKey + Clone,
RM: ResponseMode + Clone,
RT: ResponseType + Clone,
S: SubjectIdentifierType + Clone,
K::SigningAlgorithm: Clone,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Clone for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + Clone,
AD: AuthDisplay + Clone,
CA: ClientAuthMethod + Clone,
CN: ClaimName + Clone,
CT: ClaimType + Clone,
G: GrantType + Clone,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType> + Clone,
JK: JweKeyManagementAlgorithm + Clone,
K: JsonWebKey + Clone,
RM: ResponseMode + Clone,
RT: ResponseType + Clone,
S: SubjectIdentifierType + Clone,
K::SigningAlgorithm: Clone,
Source§fn clone(&self) -> ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>
fn clone(&self) -> ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Debug for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + Debug,
AD: AuthDisplay + Debug,
CA: ClientAuthMethod + Debug,
CN: ClaimName + Debug,
CT: ClaimType + Debug,
G: GrantType + Debug,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType> + Debug,
JK: JweKeyManagementAlgorithm + Debug,
K: JsonWebKey + Debug,
RM: ResponseMode + Debug,
RT: ResponseType + Debug,
S: SubjectIdentifierType + Debug,
K::SigningAlgorithm: Debug,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Debug for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + Debug,
AD: AuthDisplay + Debug,
CA: ClientAuthMethod + Debug,
CN: ClaimName + Debug,
CT: ClaimType + Debug,
G: GrantType + Debug,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType> + Debug,
JK: JweKeyManagementAlgorithm + Debug,
K: JsonWebKey + Debug,
RM: ResponseMode + Debug,
RT: ResponseType + Debug,
S: SubjectIdentifierType + Debug,
K::SigningAlgorithm: Debug,
Source§impl<'de, A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Deserialize<'de> for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata,
AD: AuthDisplay,
CA: ClientAuthMethod,
CN: ClaimName,
CT: ClaimType,
G: GrantType,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType>,
JK: JweKeyManagementAlgorithm,
K: JsonWebKey,
RM: ResponseMode,
RT: ResponseType,
S: SubjectIdentifierType,
impl<'de, A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Deserialize<'de> for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata,
AD: AuthDisplay,
CA: ClientAuthMethod,
CN: ClaimName,
CT: ClaimType,
G: GrantType,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType>,
JK: JweKeyManagementAlgorithm,
K: JsonWebKey,
RM: ResponseMode,
RT: ResponseType,
S: SubjectIdentifierType,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> PartialEq for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + PartialEq,
AD: AuthDisplay + PartialEq,
CA: ClientAuthMethod + PartialEq,
CN: ClaimName + PartialEq,
CT: ClaimType + PartialEq,
G: GrantType + PartialEq,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType> + PartialEq,
JK: JweKeyManagementAlgorithm + PartialEq,
K: JsonWebKey + PartialEq,
RM: ResponseMode + PartialEq,
RT: ResponseType + PartialEq,
S: SubjectIdentifierType + PartialEq,
K::SigningAlgorithm: PartialEq,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> PartialEq for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + PartialEq,
AD: AuthDisplay + PartialEq,
CA: ClientAuthMethod + PartialEq,
CN: ClaimName + PartialEq,
CT: ClaimType + PartialEq,
G: GrantType + PartialEq,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType> + PartialEq,
JK: JweKeyManagementAlgorithm + PartialEq,
K: JsonWebKey + PartialEq,
RM: ResponseMode + PartialEq,
RT: ResponseType + PartialEq,
S: SubjectIdentifierType + PartialEq,
K::SigningAlgorithm: PartialEq,
Source§fn eq(
&self,
other: &ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>,
) -> bool
fn eq( &self, other: &ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>, ) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Serialize for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + Serialize,
AD: AuthDisplay + Serialize,
CA: ClientAuthMethod + Serialize,
CN: ClaimName + Serialize,
CT: ClaimType + Serialize,
G: GrantType + Serialize,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType>,
JK: JweKeyManagementAlgorithm,
K: JsonWebKey,
RM: ResponseMode + Serialize,
RT: ResponseType + Serialize,
S: SubjectIdentifierType + Serialize,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Serialize for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + Serialize,
AD: AuthDisplay + Serialize,
CA: ClientAuthMethod + Serialize,
CN: ClaimName + Serialize,
CT: ClaimType + Serialize,
G: GrantType + Serialize,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType>,
JK: JweKeyManagementAlgorithm,
K: JsonWebKey,
RM: ResponseMode + Serialize,
RT: ResponseType + Serialize,
S: SubjectIdentifierType + Serialize,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Eq for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata + Eq,
AD: AuthDisplay + Eq,
CA: ClientAuthMethod + Eq,
CN: ClaimName + Eq,
CT: ClaimType + Eq,
G: GrantType + Eq,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType> + Eq,
JK: JweKeyManagementAlgorithm + Eq,
K: JsonWebKey + Eq,
RM: ResponseMode + Eq,
RT: ResponseType + Eq,
S: SubjectIdentifierType + Eq,
K::SigningAlgorithm: Eq,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> StructuralPartialEq for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: AdditionalProviderMetadata,
AD: AuthDisplay,
CA: ClientAuthMethod,
CN: ClaimName,
CT: ClaimType,
G: GrantType,
JE: JweContentEncryptionAlgorithm<KeyType = <K::SigningAlgorithm as JwsSigningAlgorithm>::KeyType>,
JK: JweKeyManagementAlgorithm,
K: JsonWebKey,
RM: ResponseMode,
RT: ResponseType,
S: SubjectIdentifierType,
Auto Trait Implementations§
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Freeze for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: Freeze,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> RefUnwindSafe for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: RefUnwindSafe,
S: RefUnwindSafe,
<K as JsonWebKey>::SigningAlgorithm: RefUnwindSafe,
K: RefUnwindSafe,
RM: RefUnwindSafe,
G: RefUnwindSafe,
JK: RefUnwindSafe,
JE: RefUnwindSafe,
CA: RefUnwindSafe,
AD: RefUnwindSafe,
CT: RefUnwindSafe,
CN: RefUnwindSafe,
RT: RefUnwindSafe,
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Send for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Sync for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> Unpin for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>
impl<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S> UnwindSafe for ProviderMetadata<A, AD, CA, CN, CT, G, JE, JK, K, RM, RT, S>where
A: UnwindSafe,
S: UnwindSafe,
<K as JsonWebKey>::SigningAlgorithm: UnwindSafe,
K: UnwindSafe,
RM: UnwindSafe,
G: UnwindSafe,
JK: UnwindSafe,
JE: UnwindSafe,
CA: UnwindSafe,
AD: UnwindSafe,
CT: UnwindSafe,
CN: UnwindSafe,
RT: UnwindSafe,
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