#[non_exhaustive]pub struct AuthorizationMetadata {
pub authorization_endpoint: String,
pub token_endpoint: String,
pub registration_endpoint: Option<String>,
pub issuer: Option<String>,
pub jwks_uri: Option<String>,
pub scopes_supported: Option<Vec<String>>,
pub response_types_supported: Option<Vec<String>>,
pub code_challenge_methods_supported: Option<Vec<String>>,
pub additional_fields: HashMap<String, Value>,
}Available on crate feature
auth and (crate features client or server) only.Expand description
oauth2 metadata
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.token_endpoint: String§registration_endpoint: Option<String>§issuer: Option<String>§jwks_uri: Option<String>§scopes_supported: Option<Vec<String>>§response_types_supported: Option<Vec<String>>§code_challenge_methods_supported: Option<Vec<String>>§additional_fields: HashMap<String, Value>Trait Implementations§
Source§impl Clone for AuthorizationMetadata
impl Clone for AuthorizationMetadata
Source§impl Debug for AuthorizationMetadata
impl Debug for AuthorizationMetadata
Source§impl Default for AuthorizationMetadata
impl Default for AuthorizationMetadata
Source§impl<'de> Deserialize<'de> for AuthorizationMetadata
impl<'de> Deserialize<'de> for AuthorizationMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthorizationMetadata
impl RefUnwindSafe for AuthorizationMetadata
impl Send for AuthorizationMetadata
impl Sync for AuthorizationMetadata
impl Unpin for AuthorizationMetadata
impl UnsafeUnpin for AuthorizationMetadata
impl UnwindSafe for AuthorizationMetadata
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
Mutably borrows from an owned value. Read more