Struct poem_openapi::auth::ApiKey
source · [−]pub struct ApiKey {
pub key: String,
}
Expand description
Used to extract the Api Key from the request.
Fields
key: String
Api key
Trait Implementations
sourceimpl ApiKeyAuthorization for ApiKey
impl ApiKeyAuthorization for ApiKey
sourcefn from_request(
req: &Request,
query: &UrlQuery,
name: &str,
in_type: MetaParamIn
) -> Result<Self>
fn from_request(
req: &Request,
query: &UrlQuery,
name: &str,
in_type: MetaParamIn
) -> Result<Self>
Extract from the HTTP request.
Auto Trait Implementations
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnwindSafe for ApiKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more