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

pub struct Scope<S = Scope<ScopeEndpoint>> { /* fields omitted */ }

Wrapper for actix_web::Scope

Methods

impl Scope<Scope<ScopeEndpoint>>[src]

pub fn new(path: &str) -> Scope<Scope<ScopeEndpoint>>[src]

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

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

Proxy for actix_web::Scope::guard.

NOTE: This doesn't affect spec generation.

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

Proxy for actix_web::Scope::data.

NOTE: This doesn't affect spec generation.

pub fn configure<F>(self, f: F) -> Scope<Scope<T>> where
    F: FnOnce(&mut ServiceConfig<Scope<T>>), 
[src]

pub fn service<F>(self, factory: F) -> Scope<Scope<T>> where
    F: Mountable + HttpServiceFactory + 'static, 
[src]

pub fn route(self, path: &str, route: Route) -> Scope<Scope<T>>[src]

pub fn default_service<F, U>(self, f: F) -> Scope<Scope<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::Scope::default_service.

NOTE: This doesn't affect spec generation.

pub fn wrap<M>(
    self,
    mw: M
) -> Scope<Scope<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::Scope::wrap.

NOTE: This doesn't affect spec generation.

pub fn wrap_fn<F, R>(
    self,
    mw: F
) -> Scope<Scope<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::Scope::wrap_fn.

NOTE: This doesn't affect spec generation.

Trait Implementations

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

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

Auto Trait Implementations

impl<S> RefUnwindSafe for Scope<S> where
    S: RefUnwindSafe

impl<S> Send for Scope<S> where
    S: Send

impl<S> Sync for Scope<S> where
    S: Sync

impl<S> Unpin for Scope<S> where
    S: Unpin

impl<S> UnwindSafe for Scope<S> where
    S: 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>,