pub struct ProtectedResource {
pub resource: String,
pub authorization_servers: Vec<String>,
pub metadata_url: String,
}Expand description
The RFC 9728 protected-resource metadata this deployment publishes.
Served at /.well-known/oauth-protected-resource and named in the
WWW-Authenticate challenge on 401s, which is how an MCP client finds
the authorization server to obtain a token from.
Fields§
§resource: StringThe resource identifier: this deployment’s public URL.
The issuers that mint tokens for it.
metadata_url: StringWhere the metadata document itself is served.
Implementations§
Trait Implementations§
Source§impl Clone for ProtectedResource
impl Clone for ProtectedResource
Source§impl Debug for ProtectedResource
impl Debug for ProtectedResource
impl Eq for ProtectedResource
Source§impl PartialEq for ProtectedResource
impl PartialEq for ProtectedResource
impl StructuralPartialEq for ProtectedResource
Auto Trait Implementations§
impl Freeze for ProtectedResource
impl RefUnwindSafe for ProtectedResource
impl Send for ProtectedResource
impl Sync for ProtectedResource
impl Unpin for ProtectedResource
impl UnsafeUnpin for ProtectedResource
impl UnwindSafe for ProtectedResource
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