pub enum SecuritySchemeKind {
ApiKey(ApiKeyScheme),
HttpBasic,
HttpBearer {
bearer_format: Option<String>,
},
MutualTls,
Oauth2(OAuth2Scheme),
OpenIdConnect {
url: String,
},
}Variants§
ApiKey(ApiKeyScheme)
HttpBasic
HttpBearer
MutualTls
OAS 3.0+ mutualTLS — client-cert auth (mTLS). The IR carries
the declaration; certificate provisioning is out of scope and
left to the consumer’s transport configuration.
Oauth2(OAuth2Scheme)
OpenIdConnect
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<'de> Deserialize<'de> for SecuritySchemeKind
impl<'de> Deserialize<'de> for SecuritySchemeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SecuritySchemeKind
impl PartialEq for SecuritySchemeKind
Source§fn eq(&self, other: &SecuritySchemeKind) -> bool
fn eq(&self, other: &SecuritySchemeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SecuritySchemeKind
impl Serialize 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