pub struct SecurityScheme {
pub _type: SecurityType,
pub description: Option<String>,
pub extensions: IndexMap<String, Value>,
}
Expand description
Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2
’s common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.
Fields§
§_type: SecurityType
The type of the security scheme. Valid values are "apiKey"
, "http"
, "oauth2"
, "openIdConnect"
.
description: Option<String>
A short description for security scheme. CommonMark syntax MAY be used for rich text representation.
extensions: IndexMap<String, Value>
This object MAY be extended with Specification Extensions.
Trait Implementations§
Source§impl Clone for SecurityScheme
impl Clone for SecurityScheme
Source§fn clone(&self) -> SecurityScheme
fn clone(&self) -> SecurityScheme
Returns a copy 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
Auto Trait Implementations§
impl Freeze for SecurityScheme
impl RefUnwindSafe for SecurityScheme
impl Send for SecurityScheme
impl Sync for SecurityScheme
impl Unpin 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