pub struct AuthorizationCodeOAuth2Flow {
pub authorization_url: String,
pub token_url: String,
pub refresh_url: Option<String>,
pub scopes: BTreeMap<String, String>,
pub extensions: Option<BTreeMap<String, Value>>,
}Expand description
Configuration details for the ClientCredentials OAuth Flow
Fields§
Required The authorization URL to be used for this flow. This MUST be in the form of a URL.
token_url: StringRequired 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: BTreeMap<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.
extensions: Option<BTreeMap<String, Value>>This object MAY be extended with Specification Extensions.
The field name MUST begin with x-, for example, x-internal-id.
The value can be null, a primitive, an array or an object.
Trait Implementations§
Source§impl Clone for AuthorizationCodeOAuth2Flow
impl Clone for AuthorizationCodeOAuth2Flow
Source§fn clone(&self) -> AuthorizationCodeOAuth2Flow
fn clone(&self) -> AuthorizationCodeOAuth2Flow
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 AuthorizationCodeOAuth2Flow
impl Debug for AuthorizationCodeOAuth2Flow
Source§impl Default for AuthorizationCodeOAuth2Flow
impl Default for AuthorizationCodeOAuth2Flow
Source§fn default() -> AuthorizationCodeOAuth2Flow
fn default() -> AuthorizationCodeOAuth2Flow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorizationCodeOAuth2Flow
impl<'de> Deserialize<'de> for AuthorizationCodeOAuth2Flow
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 AuthorizationCodeOAuth2Flow
Auto Trait Implementations§
impl Freeze for AuthorizationCodeOAuth2Flow
impl RefUnwindSafe for AuthorizationCodeOAuth2Flow
impl Send for AuthorizationCodeOAuth2Flow
impl Sync for AuthorizationCodeOAuth2Flow
impl Unpin for AuthorizationCodeOAuth2Flow
impl UnwindSafe for AuthorizationCodeOAuth2Flow
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