#[non_exhaustive]pub enum SecuritySchemeKind {
HttpBearer,
HttpBasic,
ApiKeyHeader(String),
ApiKeyQuery(String),
ApiKeyCookie(String),
Unsupported(String),
}Expand description
How a SecurityScheme’s credential is applied to a request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HttpBearer
type: http, scheme: bearer — Authorization: Bearer <token>.
HttpBasic
type: http, scheme: basic — Authorization: Basic <base64>.
ApiKeyHeader(String)
type: apiKey, in: header — the key is sent as the named header.
ApiKeyQuery(String)
type: apiKey, in: query — the key is sent as the named query parameter.
ApiKeyCookie(String)
type: apiKey, in: cookie — the key is sent as the named cookie.
Unsupported(String)
A scheme the client cannot carry as a stored credential (oauth2,
openIdConnect). The wrapped string is a human-readable reason used when
rejecting an operation that requires it.
Trait Implementations§
Source§impl Clone for SecuritySchemeKind
impl Clone for SecuritySchemeKind
Source§fn clone(&self) -> SecuritySchemeKind
fn clone(&self) -> SecuritySchemeKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecuritySchemeKind
impl Debug for SecuritySchemeKind
Source§impl PartialEq for SecuritySchemeKind
impl PartialEq for SecuritySchemeKind
impl StructuralPartialEq for SecuritySchemeKind
Auto Trait Implementations§
impl Freeze for SecuritySchemeKind
impl RefUnwindSafe for SecuritySchemeKind
impl Send for SecuritySchemeKind
impl Sync for SecuritySchemeKind
impl Unpin for SecuritySchemeKind
impl UnsafeUnpin for SecuritySchemeKind
impl UnwindSafe for SecuritySchemeKind
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