pub struct OAuthFlows {
pub authorization_code: Option<AuthorizationCodeFlow>,
pub client_credentials: Option<ClientCredentialsFlow>,
pub device_code: Option<DeviceCodeFlow>,
pub implicit: Option<ImplicitFlow>,
pub password: Option<PasswordOAuthFlow>,
}Expand description
Available OAuth 2.0 flows for an OAuth2SecurityScheme.
Mirrors the OpenAPI 3.x OAuthFlows object.
Fields§
Authorization code flow.
client_credentials: Option<ClientCredentialsFlow>Client credentials flow.
device_code: Option<DeviceCodeFlow>Device authorization flow (RFC 8628).
implicit: Option<ImplicitFlow>Implicit flow (deprecated in OAuth 2.1 but retained for compatibility).
password: Option<PasswordOAuthFlow>Resource owner password credentials flow (deprecated but present in spec).
Trait Implementations§
Source§impl Clone for OAuthFlows
impl Clone for OAuthFlows
Source§fn clone(&self) -> OAuthFlows
fn clone(&self) -> OAuthFlows
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 OAuthFlows
impl Debug for OAuthFlows
Source§impl Default for OAuthFlows
impl Default for OAuthFlows
Source§fn default() -> OAuthFlows
fn default() -> OAuthFlows
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OAuthFlows
impl<'de> Deserialize<'de> for OAuthFlows
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthFlows, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthFlows, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OAuthFlows
impl Serialize for OAuthFlows
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OAuthFlows
impl RefUnwindSafe for OAuthFlows
impl Send for OAuthFlows
impl Sync for OAuthFlows
impl Unpin for OAuthFlows
impl UnsafeUnpin for OAuthFlows
impl UnwindSafe for OAuthFlows
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