pub struct OAuth2SecurityScheme {
pub scheme_type: String,
pub flows: OAuthFlows,
pub description: Option<String>,
pub oauth2_metadata_url: Option<String>,
}Expand description
Defines a security scheme using OAuth 2.0.
Fields§
§scheme_type: StringThe type of the security scheme. Must be ‘oauth2’.
flows: OAuthFlowsConfiguration information for the supported OAuth 2.0 flows.
description: Option<String>An optional description for the security scheme.
oauth2_metadata_url: Option<String>URL to the oauth2 authorization server metadata.
Trait Implementations§
Source§impl Clone for OAuth2SecurityScheme
impl Clone for OAuth2SecurityScheme
Source§fn clone(&self) -> OAuth2SecurityScheme
fn clone(&self) -> OAuth2SecurityScheme
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 OAuth2SecurityScheme
impl Debug for OAuth2SecurityScheme
Source§impl<'de> Deserialize<'de> for OAuth2SecurityScheme
impl<'de> Deserialize<'de> for OAuth2SecurityScheme
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 OAuth2SecurityScheme
impl RefUnwindSafe for OAuth2SecurityScheme
impl Send for OAuth2SecurityScheme
impl Sync for OAuth2SecurityScheme
impl Unpin for OAuth2SecurityScheme
impl UnwindSafe for OAuth2SecurityScheme
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