pub trait RequestType: Sized {
    type Request: Request;

    // Required method
    fn borrow(&self) -> &Self::Request;
}
Expand description

Request type trait.

This allows types to implement Request by a proxy type.

Required Associated Types§

source

type Request: Request

Underlying type that implements Request.

Required Methods§

source

fn borrow(&self) -> &Self::Request

Borrow a reference to the underlying Request type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: RequestMethod> RequestType for T
where for<'a> &'a <T as RequestMethod>::Method: From<&'a T>,