pub struct ServiceConfig<'a> { /* private fields */ }
Expand description
Wrapper for actix_web::web::ServiceConfig
.
Implementations§
source§impl<'a> ServiceConfig<'a>
impl<'a> ServiceConfig<'a>
sourcepub fn route(&mut self, path: &str, route: Route) -> &mut Self
pub fn route(&mut self, path: &str, route: Route) -> &mut Self
Wrapper for actix_web::web::ServiceConfig::route
.
sourcepub fn service<F>(&mut self, factory: F) -> &mut Selfwhere
F: Mountable + HttpServiceFactory + 'static,
pub fn service<F>(&mut self, factory: F) -> &mut Selfwhere
F: Mountable + HttpServiceFactory + 'static,
Wrapper for actix_web::web::ServiceConfig::service
.
sourcepub fn external_resource<N, U>(&mut self, name: N, url: U) -> &mut Self
pub fn external_resource<N, U>(&mut self, name: N, url: U) -> &mut Self
Proxy for actix_web::web::ServiceConfig::external_resource
.
NOTE: This doesn’t affect spec generation.
sourcepub fn app_data<U: 'static>(&mut self, data: U) -> &mut Self
pub fn app_data<U: 'static>(&mut self, data: U) -> &mut Self
Proxy for actix_web::web::ServiceConfig::app_data
.
NOTE: This doesn’t affect spec generation.
Trait Implementations§
source§impl<'a> From<&'a mut ServiceConfig> for ServiceConfig<'a>
impl<'a> From<&'a mut ServiceConfig> for ServiceConfig<'a>
source§impl<'a> Mountable for ServiceConfig<'a>
impl<'a> Mountable for ServiceConfig<'a>
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<'a> Freeze for ServiceConfig<'a>
impl<'a> !RefUnwindSafe for ServiceConfig<'a>
impl<'a> !Send for ServiceConfig<'a>
impl<'a> !Sync for ServiceConfig<'a>
impl<'a> Unpin for ServiceConfig<'a>
impl<'a> !UnwindSafe for ServiceConfig<'a>
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