pub struct PrmConfig {
pub resource: String,
pub authorization_servers: Vec<String>,
pub jwks_uri: Option<String>,
pub scopes_supported: Vec<String>,
pub bearer_methods_supported: Vec<String>,
pub resource_signing_alg_values_supported: Vec<String>,
pub resource_name: Option<String>,
pub resource_documentation: Option<String>,
pub resource_policy_uri: Option<String>,
pub resource_tos_uri: Option<String>,
}Expand description
Configuration for Protected Resource Metadata
This is a simpler configuration struct that can be loaded from TOML
and converted to ProtectedResourceMetadata.
Fields§
§resource: StringThe protected resource’s resource identifier URL
List of OAuth authorization server issuer identifiers
jwks_uri: Option<String>URL of the protected resource’s JWK Set document
scopes_supported: Vec<String>List of scope values supported
bearer_methods_supported: Vec<String>List of supported bearer token methods
resource_signing_alg_values_supported: Vec<String>List of JWS signing algorithms supported
resource_name: Option<String>Human-readable name of the protected resource
resource_documentation: Option<String>URL of documentation for developers
resource_policy_uri: Option<String>URL of policy information
resource_tos_uri: Option<String>URL of terms of service
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PrmConfig
impl<'de> Deserialize<'de> for PrmConfig
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 PrmConfig
impl RefUnwindSafe for PrmConfig
impl Send for PrmConfig
impl Sync for PrmConfig
impl Unpin for PrmConfig
impl UnsafeUnpin for PrmConfig
impl UnwindSafe for PrmConfig
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