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, }
Expand description
Metadata about an API endpoint.
Fields
description: &'static str
Expand description
A human-readable description of the endpoint.
method: Method
Expand description
The HTTP method used by this endpoint.
name: &'static str
Expand description
A unique identifier for this endpoint.
path: &'static str
Expand description
The path of this endpoint’s URL, with variable names where path parameters should be filled in during a request.
rate_limited: bool
Expand description
Whether or not this endpoint is rate limited by the server.
authentication: AuthScheme
Expand description
What authentication scheme the server uses for this endpoint.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more