pub struct OAuthFlows {
pub implicit: Option<OAuthFlow>,
pub password: Option<OAuthFlow>,
pub client_credentials: Option<OAuthFlow>,
pub authorization_code: Option<OAuthFlow>,
pub x_fields: HashMap<String, Value>,
}
Expand description
OAuth Flows Object
Allows configuration of the supported OAuth Flows.
Fields§
§implicit: Option<OAuthFlow>
Configuration for the OAuth Implicit flow
password: Option<OAuthFlow>
Configuration for the OAuth Resource Owner Password flow
client_credentials: Option<OAuthFlow>
Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0.
Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
x_fields: HashMap<String, Value>
Allows extensions to the Swagger Schema. The field name MUST begin with x-, for example, x-internal-id. The value can be null, a primitive, an array or an object. See Vendor Extensions for further details.
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 OAuthFlowswhere
OAuthFlows: Default,
impl<'de> Deserialize<'de> for OAuthFlowswhere
OAuthFlows: Default,
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 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 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