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
sourceimpl<'de> Deserialize<'de> for Flow
impl<'de> Deserialize<'de> for Flow
sourcefn 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 RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnwindSafe for Flow
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more