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 requires_authentication: bool,
}

Metadata about an API endpoint.

Fields

A human-readable description of the endpoint.

The HTTP method used by this endpoint.

A unique identifier for this endpoint.

The path of this endpoint's URL, with variable names where path parameters should be filled in during a request.

Whether or not this endpoint is rate limited by the server.

Whether or not the server requires an authenticated user for this endpoint.

Trait Implementations

impl Clone for Metadata
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Metadata
[src]

[src]

Formats the value using the given formatter.