pub struct OAuthProtectedResource {
pub resource: String,
pub authorization_servers: Vec<String>,
pub scopes_supported: Vec<String>,
pub bearer_methods_supported: Vec<String>,
}
Expand description
OAuth 2.0 protected resource metadata from RFC 8414 oauth-protected-resource endpoint.
AT Protocol requires that the authorization_servers array contains exactly one URL.
Fields§
§resource: String
The protected resource URI, must match the PDS base URL.
Authorization server URLs that can issue tokens for this resource. AT Protocol requires exactly one authorization server URL.
scopes_supported: Vec<String>
OAuth 2.0 scopes supported by this protected resource.
bearer_methods_supported: Vec<String>
Bearer token methods supported (e.g., “header”, “body”, “query”).
Trait Implementations§
Source§impl Clone for OAuthProtectedResource
impl Clone for OAuthProtectedResource
Source§fn clone(&self) -> OAuthProtectedResource
fn clone(&self) -> OAuthProtectedResource
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<'de> Deserialize<'de> for OAuthProtectedResource
impl<'de> Deserialize<'de> for OAuthProtectedResource
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 OAuthProtectedResource
impl RefUnwindSafe for OAuthProtectedResource
impl Send for OAuthProtectedResource
impl Sync for OAuthProtectedResource
impl Unpin for OAuthProtectedResource
impl UnwindSafe for OAuthProtectedResource
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