pub struct OAuthFlow {
pub authorization_url: String,
pub token_url: String,
pub refresh_url: Option<String>,
pub scopes: HashMap<String, String>,
pub x_fields: HashMap<String, Value>,
}
Expand description
OAuth Flow Object
Configuration details for a supported OAuth Flow
Fields§
REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL.
token_url: String
REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL.
refresh_url: Option<String>
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
scopes: HashMap<String, String>
REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
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<'de> Deserialize<'de> for OAuthFlow
impl<'de> Deserialize<'de> for OAuthFlow
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 StructuralPartialEq for OAuthFlow
Auto Trait Implementations§
impl Freeze for OAuthFlow
impl RefUnwindSafe for OAuthFlow
impl Send for OAuthFlow
impl Sync for OAuthFlow
impl Unpin for OAuthFlow
impl UnwindSafe for OAuthFlow
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