pub struct SecurityScheme {
pub type: SecuritySchemeType,
pub description: Option<String>,
pub name: String,
pub in: String,
pub scheme: String,
pub beare_format: Option<String>,
pub flows: OAuthFlows,
pub open_id_connect_url: String,
}
Expand description
§SecurityScheme
Defines a security scheme that can be used by the operations.
Fields§
§type: SecuritySchemeType
The type of the security scheme.
description: Option<String>
A short description for security scheme.
name: String
The name of the header, query or cookie parameter to be used.
in: String
The location of the API key. Valid values are “query”, “header” or “cookie”.
scheme: String
The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.
beare_format: Option<String>
A hint to the client to identify how the bearer token is formatted.
flows: OAuthFlows
An object containing configuration information for the flow types supported.
open_id_connect_url: String
OpenId Connect URL to discover OAuth2 configuration values.
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§const fn clone_from(&mut self, source: &Self)
const 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
Source§impl PartialEq for SecurityScheme
impl PartialEq for SecurityScheme
Source§impl Serialize for SecurityScheme
impl Serialize for SecurityScheme
impl StructuralPartialEq 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