pub enum AuthScheme {
ApiKey {
location: String,
name: String,
},
Http {
scheme: String,
bearer_format: Option<String>,
},
OAuth2 {
grant_type: Option<OAuthGrantType>,
authorization_url: Option<String>,
token_url: Option<String>,
scopes: Option<HashMap<String, String>>,
},
OpenIdConnect {
open_id_connect_url: String,
},
}Expand description
OpenAPI 3.0-style security scheme — internally tagged on "type".
Variants§
ApiKey
API key passed via header, query, or cookie.
Fields
Http
HTTP authentication (bearer, basic, etc.).
Fields
OAuth2
OAuth2 authentication.
OpenIdConnect
OpenID Connect Discovery.
Trait Implementations§
Source§impl Clone for AuthScheme
impl Clone for AuthScheme
Source§fn clone(&self) -> AuthScheme
fn clone(&self) -> AuthScheme
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 AuthScheme
impl Debug for AuthScheme
Source§impl<'de> Deserialize<'de> for AuthScheme
impl<'de> Deserialize<'de> for AuthScheme
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 AuthScheme
impl RefUnwindSafe for AuthScheme
impl Send for AuthScheme
impl Sync for AuthScheme
impl Unpin for AuthScheme
impl UnwindSafe for AuthScheme
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