pub struct OAuthFlows {
pub implicit: Option<OAuthFlow>,
pub password: Option<OAuthFlow>,
pub client_credentials: Option<OAuthFlow>,
pub authorization_code: Option<OAuthFlow>,
pub device_authorization: Option<OAuthFlow>,
pub extensions: Extensions,
}Expand description
The OAuth 2.0 flows a scheme supports.
Fields§
§implicit: Option<OAuthFlow>The implicit flow.
password: Option<OAuthFlow>The resource owner password credentials flow.
client_credentials: Option<OAuthFlow>The client credentials flow.
The authorization code flow.
The RFC 8628 device authorization flow.
Introduced in OpenAPI 3.2.
extensions: ExtensionsSpecification extensions.
Implementations§
Source§impl OAuthFlows
impl OAuthFlows
Sourcepub fn with_implicit(self, flow: OAuthFlow) -> Self
pub fn with_implicit(self, flow: OAuthFlow) -> Self
Adds the implicit flow.
Sourcepub fn with_password(self, flow: OAuthFlow) -> Self
pub fn with_password(self, flow: OAuthFlow) -> Self
Adds the resource owner password credentials flow.
Sourcepub fn with_client_credentials(self, flow: OAuthFlow) -> Self
pub fn with_client_credentials(self, flow: OAuthFlow) -> Self
Adds the client credentials flow.
Adds the authorization code flow.
Adds the RFC 8628 device authorization flow.
Trait Implementations§
Source§impl Clone for OAuthFlows
impl Clone for OAuthFlows
Source§impl Debug for OAuthFlows
impl Debug for OAuthFlows
Source§impl Default for OAuthFlows
impl Default for OAuthFlows
Source§impl<'de> Deserialize<'de> for OAuthFlows
impl<'de> Deserialize<'de> for OAuthFlows
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
impl Eq for OAuthFlows
Source§impl PartialEq for OAuthFlows
impl PartialEq for OAuthFlows
Source§impl Serialize for OAuthFlows
impl Serialize for OAuthFlows
impl StructuralPartialEq for OAuthFlows
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.