MethodReq

Trait MethodReq 

Source
pub trait MethodReq {
    // Required method
    fn method(&self) -> &Method;
}
Expand description

A request that has an HTTP method.

This trait is required when using #[derive(Param)] or #[route] attribute.

Required Methods§

Source

fn method(&self) -> &Method

The associated method.

Implementations on Foreign Types§

Source§

impl<T> MethodReq for Request<T>

Source§

fn method(&self) -> &Method

Implementors§