pub struct ProtectedResourceMetadata {
pub resource: String,
pub authorization_server: String,
pub scopes_supported: Option<Vec<String>>,
pub bearer_methods_supported: Option<Vec<BearerTokenMethod>>,
pub resource_documentation: Option<String>,
pub additional_metadata: HashMap<String, Value>,
}Expand description
Protected Resource Metadata (RFC 9728) for server-side discovery
Fields§
§resource: StringResource server identifier (REQUIRED)
Authorization server endpoint (REQUIRED)
scopes_supported: Option<Vec<String>>Available scopes for this resource (OPTIONAL)
bearer_methods_supported: Option<Vec<BearerTokenMethod>>Bearer token methods supported (OPTIONAL)
resource_documentation: Option<String>Resource documentation URI (OPTIONAL)
additional_metadata: HashMap<String, Value>Additional metadata (OPTIONAL)
Trait Implementations§
Source§impl Clone for ProtectedResourceMetadata
impl Clone for ProtectedResourceMetadata
Source§fn clone(&self) -> ProtectedResourceMetadata
fn clone(&self) -> ProtectedResourceMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtectedResourceMetadata
impl Debug for ProtectedResourceMetadata
Source§impl<'de> Deserialize<'de> for ProtectedResourceMetadata
impl<'de> Deserialize<'de> for ProtectedResourceMetadata
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 ProtectedResourceMetadata
impl RefUnwindSafe for ProtectedResourceMetadata
impl Send for ProtectedResourceMetadata
impl Sync for ProtectedResourceMetadata
impl Unpin for ProtectedResourceMetadata
impl UnwindSafe for ProtectedResourceMetadata
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