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
impl Eq for Flow
impl StructuralPartialEq for Flow
Auto Trait Implementations§
impl Freeze for Flow
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.