PathReq

Trait PathReq 

Source
pub trait PathReq {
    // Required method
    fn path(&self) -> &str;
}
Expand description

A request that has a path.

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

Required Methods§

Source

fn path(&self) -> &str

The associated path.

Implementations on Foreign Types§

Source§

impl PathReq for &str

Source§

fn path(&self) -> &str

Source§

impl PathReq for String

Source§

fn path(&self) -> &str

Source§

impl PathReq for PathAndQuery

Source§

fn path(&self) -> &str

Source§

impl PathReq for Uri

Source§

fn path(&self) -> &str

Source§

impl<T> PathReq for Request<T>

Source§

fn path(&self) -> &str

Implementors§