pub struct OAuthProtectedResourceMetadata {
pub authorization_servers: Vec<String>,
pub bearer_methods_supported: Vec<String>,
pub resource: String,
pub resource_logo_uri: String,
pub resource_name: String,
pub scopes_supported: Vec<String>,
}Expand description
RFC 9728 Protected Resource Metadata.
JSON schema
{
"description": "RFC 9728 Protected Resource Metadata.",
"type": "object",
"required": [
"authorization_servers",
"bearer_methods_supported",
"resource",
"resource_logo_uri",
"resource_name",
"scopes_supported"
],
"properties": {
"authorization_servers": {
"type": "array",
"items": {
"type": "string"
}
},
"bearer_methods_supported": {
"examples": [
[
"header"
]
],
"type": "array",
"items": {
"type": "string"
}
},
"resource": {
"examples": [
"https://api.taskfast.app/api/"
],
"type": "string"
},
"resource_logo_uri": {
"type": "string"
},
"resource_name": {
"examples": [
"TaskFast"
],
"type": "string"
},
"scopes_supported": {
"examples": [
[
"api.read",
"api.write"
]
],
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields§
§bearer_methods_supported: Vec<String>§resource: String§resource_logo_uri: String§resource_name: String§scopes_supported: Vec<String>Trait Implementations§
Source§impl Clone for OAuthProtectedResourceMetadata
impl Clone for OAuthProtectedResourceMetadata
Source§fn clone(&self) -> OAuthProtectedResourceMetadata
fn clone(&self) -> OAuthProtectedResourceMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OAuthProtectedResourceMetadata
impl<'de> Deserialize<'de> for OAuthProtectedResourceMetadata
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 OAuthProtectedResourceMetadata
impl RefUnwindSafe for OAuthProtectedResourceMetadata
impl Send for OAuthProtectedResourceMetadata
impl Sync for OAuthProtectedResourceMetadata
impl Unpin for OAuthProtectedResourceMetadata
impl UnsafeUnpin for OAuthProtectedResourceMetadata
impl UnwindSafe for OAuthProtectedResourceMetadata
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