Struct poem_openapi::PoemExtractor [−][src]
pub struct PoemExtractor<T>(pub T);
Expand description
Represents a poem extractor.
Tuple Fields
0: T
Trait Implementations
The type of API extractor.
type ParamRawType = ()
type ParamRawType = ()
The raw parameter type for validators.
fn from_request<'life0, 'async_trait>(
request: &'a Request,
body: &'life0 mut RequestBody,
_param_opts: ExtractParamOptions<Self::ParamType>
) -> Pin<Box<dyn Future<Output = Result<Self, ParseRequestError>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn from_request<'life0, 'async_trait>(
request: &'a Request,
body: &'life0 mut RequestBody,
_param_opts: ExtractParamOptions<Self::ParamType>
) -> Pin<Box<dyn Future<Output = Result<Self, ParseRequestError>> + Send + 'async_trait>> where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Parse from the HTTP request.
If it is true
, it means that this parameter is required.
Returns name of security scheme if this extractor is security scheme.
Returns the location of the parameter if this extractor is parameter.
Returns the schema of the parameter if this extractor is parameter.
Returns MetaRequest
if this extractor is request object.
Returns a reference to the raw type of this parameter.
Auto Trait Implementations
impl<T> RefUnwindSafe for PoemExtractor<T> where
T: RefUnwindSafe,
impl<T> Send for PoemExtractor<T> where
T: Send,
impl<T> Sync for PoemExtractor<T> where
T: Sync,
impl<T> Unpin for PoemExtractor<T> where
T: Unpin,
impl<T> UnwindSafe for PoemExtractor<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more