spring_web::extractor

Trait RequestPartsExt

source
pub trait RequestPartsExt {
    // Required methods
    fn get_app_state(&self) -> &AppState;
    fn get_component<T: Clone + Send + Sync + 'static>(&self) -> Result<T>;
    fn get_config<T: DeserializeOwned + Configurable>(&self) -> Result<T>;
}
Expand description

Extending the functionality of RequestParts

Required Methods§

source

fn get_app_state(&self) -> &AppState

get AppState

source

fn get_component<T: Clone + Send + Sync + 'static>(&self) -> Result<T>

get Component

source

fn get_config<T: DeserializeOwned + Configurable>(&self) -> Result<T>

get Config

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RequestPartsExt for Parts

Implementors§