pub enum Flow {
OAuth2 {
authorization_url: Option<String>,
token_url: Option<String>,
scopes: HashMap<String, String>,
refresh_url: Option<String>,
},
SignedUrl {
method: String,
authorization_api: Option<String>,
parameters: HashMap<String, Parameter>,
response_field: Option<String>,
},
}
Expand description
The OAuth2 Flow Object applies for oauth2, the Signed URL Object applies to signedUrl.
Variants§
OAuth2
Based on the OpenAPI OAuth Flow Object.
Allows configuration of the supported OAuth Flows.
Fields
The authorization URL to be used for this flow.
This MUST be in the form of a URL.
§
token_url: Option<String>
The token URL to be used for this flow.
This MUST be in the form of a URL.
SignedUrl
A signed url flow.
Fields
The signed URL API endpoint to be used for this flow.
If not inferred from the client environment, this must be defined in the authentication flow.
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
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