pub trait EndpointMetadata {
    fn method(&self) -> Method;
    fn path(&self) -> &[PathSegment];
    fn template(&self) -> &str;
    fn service_name(&self) -> &str;
    fn name(&self) -> &str;
    fn deprecated(&self) -> Option<&str>;
}
Expand description

Metadata about an HTTP endpoint.

Required Methods§

The endpoint’s HTTP method.

The endpoint’s parsed HTTP URI path.

Each value in the slice represents one segment of the URI.

The endpoint’s raw HTTP URI template.

Use the Self::path() method for routing rather than parsing this string.

The name of the service defining this endpoint.

The name of the endpoint.

If the endpoint is deprecated, returns the deprecation documentation.

Implementations on Foreign Types§

Implementors§