pub struct Scope<S = Scope> { /* private fields */ }
Expand description
Wrapper for actix_web::Scope
Implementations§
source§impl<T> Scope<Scope<T>>
impl<T> Scope<Scope<T>>
sourcepub fn guard<G: Guard + 'static>(self, guard: G) -> Self
pub fn guard<G: Guard + 'static>(self, guard: G) -> Self
Proxy for actix_web::Scope::guard
.
NOTE: This doesn’t affect spec generation.
sourcepub fn app_data<U: 'static>(self, data: U) -> Self
pub fn app_data<U: 'static>(self, data: U) -> Self
Proxy for actix_web::Scope::app_data
.
NOTE: This doesn’t affect spec generation.
sourcepub fn configure<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut ServiceConfig<'_>),
pub fn configure<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut ServiceConfig<'_>),
Wrapper for actix_web::Scope::configure
.
sourcepub fn service<F>(self, factory: F) -> Selfwhere
F: Mountable + HttpServiceFactory + 'static,
pub fn service<F>(self, factory: F) -> Selfwhere
F: Mountable + HttpServiceFactory + 'static,
Wrapper for actix_web::Scope::service
.
sourcepub fn route(self, path: &str, route: Route) -> Self
pub fn route(self, path: &str, route: Route) -> Self
Wrapper for actix_web::Scope::route
.
sourcepub fn default_service<F, U>(self, f: F) -> Self
pub fn default_service<F, U>(self, f: F) -> Self
Proxy for actix_web::web::Scope::default_service
.
NOTE: This doesn’t affect spec generation.
sourcepub fn wrap<M, B>(
self,
mw: M,
) -> Scope<Scope<impl ServiceFactory<ServiceRequest, Config = (), Response = ServiceResponse<B>, Error = Error, InitError = ()>>>where
M: Transform<T::Service, ServiceRequest, Response = ServiceResponse<B>, Error = Error, InitError = ()> + 'static,
B: MessageBody,
pub fn wrap<M, B>(
self,
mw: M,
) -> Scope<Scope<impl ServiceFactory<ServiceRequest, Config = (), Response = ServiceResponse<B>, Error = Error, InitError = ()>>>where
M: Transform<T::Service, ServiceRequest, Response = ServiceResponse<B>, Error = Error, InitError = ()> + 'static,
B: MessageBody,
Proxy for actix_web::web::Scope::wrap
.
NOTE: This doesn’t affect spec generation.
Trait Implementations§
source§impl<T> Mountable for Scope<T>
impl<T> Mountable for Scope<T>
source§fn operations(&mut self) -> BTreeMap<HttpMethod, DefaultOperationRaw>
fn operations(&mut self) -> BTreeMap<HttpMethod, DefaultOperationRaw>
Map of HTTP methods and the associated API operations.
source§fn security_definitions(&mut self) -> BTreeMap<String, SecurityScheme>
fn security_definitions(&mut self) -> BTreeMap<String, SecurityScheme>
The security definitions recorded by this object.
source§fn definitions(&mut self) -> BTreeMap<String, DefaultSchemaRaw>
fn definitions(&mut self) -> BTreeMap<String, DefaultSchemaRaw>
The definitions recorded by this object.
Auto Trait Implementations§
impl<S> Freeze for Scope<S>where
S: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more