[][src]Struct paperclip::actix::web::Route

pub struct Route { /* fields omitted */ }

Wrapper for actix_web::Route


impl Route[src]

pub fn new() -> Route[src]

pub fn method(self, method: Method) -> Route[src]

pub fn guard<G>(self, guard: G) -> Route where
    G: 'static + Guard, 

Proxy for actix_web::Route::guard.

NOTE: This doesn't affect spec generation.

pub fn to<F, I, R, U>(self, handler: F) -> Route where
    F: Apiv2Operation<I, U> + Factory<I, R, U>,
    I: FromRequest + 'static,
    R: Future<Output = U> + 'static,
    U: Responder + 'static, 

Trait Implementations

impl ServiceFactory for Route[src]

type Config = ()

Service factory configuration

type Request = ServiceRequest

Requests handled by the service.

type Response = ServiceResponse<Body>

Responses given by the service

type Error = Error

Errors produced by the service

type InitError = ()

Errors produced while building a service.

type Service = <Route as ServiceFactory>::Service

The Service value created by this factory

type Future = <Route as ServiceFactory>::Future

The future of the Service instance.

Auto Trait Implementations

impl !RefUnwindSafe for Route

impl !Send for Route

impl !Sync for Route

impl Unpin for Route

impl !UnwindSafe for Route

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> IntoServiceFactory<T> for T where
    T: ServiceFactory, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,