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

pub struct Resource<R = Resource<ResourceEndpoint>> { /* fields omitted */ }

Wrapper for actix_web::Resource

Methods

impl Resource<Resource<ResourceEndpoint>>[src]

pub fn new(path: &str) -> Resource<Resource<ResourceEndpoint>>[src]

impl<T> Resource<Resource<T>> where
    T: ServiceFactory<Config = (), Request = ServiceRequest, Response = ServiceResponse<Body>, Error = Error, InitError = ()>, 
[src]

pub fn name(self, name: &str) -> Resource<Resource<T>>[src]

Proxy for actix_web::Resource::name.

NOTE: This doesn't affect spec generation.

pub fn guard<G>(self, guard: G) -> Resource<Resource<T>> where
    G: 'static + Guard, 
[src]

Proxy for actix_web::Resource::guard.

NOTE: This doesn't affect spec generation.

pub fn route(self, route: Route) -> Resource<Resource<T>>[src]

pub fn data<U>(self, data: U) -> Resource<Resource<T>> where
    U: 'static, 
[src]

Proxy for actix_web::Resource::data.

NOTE: This doesn't affect spec generation.

pub fn app_data<U>(self, data: U) -> Resource<Resource<T>> where
    U: 'static, 
[src]

Proxy for actix_web::Resource::app_data.

NOTE: This doesn't affect spec generation.

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

pub fn wrap<M>(
    self,
    mw: M
) -> Resource<Resource<impl ServiceFactory<Config = (), Request = ServiceRequest, Response = ServiceResponse<Body>, Error = Error, InitError = ()>>> where
    M: Transform<<T as ServiceFactory>::Service, Request = ServiceRequest, Response = ServiceResponse<Body>, Error = Error, InitError = ()>, 
[src]

Proxy for actix_web::web::Resource::wrap.

NOTE: This doesn't affect spec generation.

pub fn wrap_fn<F, R>(
    self,
    mw: F
) -> Resource<Resource<impl ServiceFactory<Config = (), Request = ServiceRequest, Response = ServiceResponse<Body>, Error = Error, InitError = ()>>> where
    F: FnMut(ServiceRequest, &mut <T as ServiceFactory>::Service) -> R + Clone,
    R: Future<Output = Result<ServiceResponse<Body>, Error>>, 
[src]

Proxy for actix_web::web::Resource::wrap_fn.

NOTE: This doesn't affect spec generation.

pub fn default_service<F, U>(self, f: F) -> Resource<Resource<T>> where
    F: IntoServiceFactory<U>,
    U: ServiceFactory<Config = (), Request = ServiceRequest, Response = ServiceResponse<Body>, Error = Error, InitError = ()> + 'static,
    <U as ServiceFactory>::InitError: Debug
[src]

Proxy for actix_web::web::Resource::default_service.

NOTE: This doesn't affect spec generation.

Trait Implementations

impl<T> HttpServiceFactory for Resource<Resource<T>> where
    T: ServiceFactory<Config = (), Request = ServiceRequest, Response = ServiceResponse<Body>, Error = Error, InitError = ()> + 'static, 
[src]

impl<T> IntoServiceFactory<T> for Resource<Resource<T>> where
    T: ServiceFactory<Config = (), Request = ServiceRequest, Response = ServiceResponse<Body>, Error = Error, InitError = ()> + 'static, 
[src]

impl<T> Mountable for Resource<T>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Resource<R> where
    R: RefUnwindSafe

impl<R> Send for Resource<R> where
    R: Send

impl<R> Sync for Resource<R> where
    R: Sync

impl<R> Unpin for Resource<R> where
    R: Unpin

impl<R> UnwindSafe for Resource<R> where
    R: UnwindSafe

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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

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