pub struct ResourceMetadata {
pub resource: String,
pub authorization_servers: Vec<String>,
pub bearer_methods_supported: Vec<String>,
pub dpop_signing_alg_values_supported: Vec<String>,
pub dpop_bound_access_tokens_required: bool,
}Expand description
The protected resource metadata of riff-server (RFC 9728).
Fields§
§resource: StringThe public URL of the server. Tokens are only for it.
The issuer of each token. It is the server itself.
bearer_methods_supported: Vec<String>Always ["header"]: a token goes only in the Authorization header.
dpop_signing_alg_values_supported: Vec<String>Always ["ES256"] (RFC 9449).
dpop_bound_access_tokens_required: boolAlways true: each token is bound to a device key (R18).
Trait Implementations§
Source§impl Clone for ResourceMetadata
impl Clone for ResourceMetadata
Source§fn clone(&self) -> ResourceMetadata
fn clone(&self) -> ResourceMetadata
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 ResourceMetadata
impl Debug for ResourceMetadata
Source§impl<'de> Deserialize<'de> for ResourceMetadata
impl<'de> Deserialize<'de> for ResourceMetadata
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
Source§impl JsonSchema for ResourceMetadata
impl JsonSchema for ResourceMetadata
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ResourceMetadata
impl PartialEq for ResourceMetadata
Source§impl Serialize for ResourceMetadata
impl Serialize for ResourceMetadata
impl Eq for ResourceMetadata
impl StructuralPartialEq for ResourceMetadata
Auto Trait Implementations§
impl Freeze for ResourceMetadata
impl RefUnwindSafe for ResourceMetadata
impl Send for ResourceMetadata
impl Sync for ResourceMetadata
impl Unpin for ResourceMetadata
impl UnsafeUnpin for ResourceMetadata
impl UnwindSafe for ResourceMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.