pub enum Flow {
Implicit(Implicit),
Password(Password),
ClientCredentials(ClientCredentials),
AuthorizationCode(AuthorizationCode),
}
Expand description
OAuth2
flow configuration object.
See more details at https://spec.openapis.org/oas/latest.html#oauth-flows-object.
Variants§
Implicit(Implicit)
Define implicit Flow
type. See Implicit::new
for usage details.
Soon to be deprecated by https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics.
Password(Password)
Define password Flow
type. See Password::new
for usage details.
ClientCredentials(ClientCredentials)
Define client credentials Flow
type. See ClientCredentials::new
for usage details.
AuthorizationCode(AuthorizationCode)
Define authorization code Flow
type. See AuthorizationCode::new
for usage details.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Flow
impl<'de> Deserialize<'de> for Flow
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<Flow> for Flow
impl PartialEq<Flow> for Flow
impl Eq for Flow
impl StructuralEq for Flow
impl StructuralPartialEq for Flow
Auto Trait Implementations§
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnwindSafe for Flow
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.