#[non_exhaustive]pub enum SecurityScheme {
ApiKey(ApiKeySecurityScheme),
Http(HttpAuthSecurityScheme),
OAuth2(Box<OAuth2SecurityScheme>),
OpenIdConnect(OpenIdConnectSecurityScheme),
MutualTls(MutualTlsSecurityScheme),
}Expand description
A security scheme supported by an agent, discriminated by the "type" field.
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.
ApiKey(ApiKeySecurityScheme)
API key authentication ("apiKey").
Http(HttpAuthSecurityScheme)
HTTP authentication (e.g. Bearer, Basic) ("http").
OAuth2(Box<OAuth2SecurityScheme>)
OAuth 2.0 ("oauth2").
Boxed to reduce the enum’s stack size.
OpenIdConnect(OpenIdConnectSecurityScheme)
OpenID Connect ("openIdConnect").
MutualTls(MutualTlsSecurityScheme)
Mutual TLS ("mutualTLS").
Trait Implementations§
Source§impl Clone for SecurityScheme
impl Clone for SecurityScheme
Source§fn clone(&self) -> SecurityScheme
fn clone(&self) -> SecurityScheme
Returns a duplicate of the value. Read more
1.0.0 · 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 SecurityScheme
impl Debug for SecurityScheme
Source§impl<'de> Deserialize<'de> for SecurityScheme
impl<'de> Deserialize<'de> for SecurityScheme
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
Auto Trait Implementations§
impl Freeze for SecurityScheme
impl RefUnwindSafe for SecurityScheme
impl Send for SecurityScheme
impl Sync for SecurityScheme
impl Unpin for SecurityScheme
impl UnsafeUnpin for SecurityScheme
impl UnwindSafe for SecurityScheme
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