Struct ruma::api::Metadata [−][src]
pub struct Metadata { pub description: &'static str, pub method: Method, pub name: &'static str, pub path: &'static str, pub rate_limited: bool, pub authentication: AuthScheme, }
api
only.Expand description
Metadata about an API endpoint.
Fields
description: &'static str
A human-readable description of the endpoint.
method: Method
The HTTP method used by this endpoint.
name: &'static str
A unique identifier for this endpoint.
path: &'static str
The path of this endpoint’s URL, with variable names where path parameters should be filled in during a request.
rate_limited: bool
Whether or not this endpoint is rate limited by the server.
authentication: AuthScheme
What authentication scheme the server uses for this endpoint.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more