pub struct SecurityScheme {Show 13 fields
pub scheme_type: SecuritySchemeType,
pub description: Option<String>,
pub name: String,
pub location: String,
pub x_fields: HashMap<String, Value>,
pub flow: Option<String>,
pub authorization_url: Option<String>,
pub token_url: Option<String>,
pub scopes: HashMap<String, String>,
pub scheme: Option<String>,
pub bearer_format: Option<String>,
pub flows: Option<OAuthFlows>,
pub open_id_connect_url: Option<String>,
}
Expand description
Security Scheme Object
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§
§scheme_type: SecuritySchemeType
§description: Option<String>
§name: String
§location: String
§x_fields: HashMap<String, Value>
Allows extensions to the Swagger Schema. The field name MUST begin with x-, for example, x-internal-id. The value can be null, a primitive, an array or an object. See Vendor Extensions for further details.
flow: Option<String>
§token_url: Option<String>
§scopes: HashMap<String, String>
§scheme: Option<String>
§bearer_format: Option<String>
§flows: Option<OAuthFlows>
§open_id_connect_url: Option<String>
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 Default for SecurityScheme
impl Default for SecurityScheme
Source§fn default() -> SecurityScheme
fn default() -> SecurityScheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecuritySchemewhere
SecurityScheme: Default,
impl<'de> Deserialize<'de> for SecuritySchemewhere
SecurityScheme: Default,
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 Resolvable for SecurityScheme
impl Resolvable 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