openapi_31/v31/
implicit.rs

1// OpenAPI v3.1.0 Specification
2//
3// OpenAPI inside OpenAPI
4//
5// The version of the OpenAPI document: 3.1.0
6//
7// Generated by: https://openapi-generator.tech
8
9use crate::v31;
10
11#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
12pub struct Implicit {
13  #[serde(rename = "authorizationUrl")]
14  pub authorization_url: String,
15  #[serde(rename = "refreshUrl", skip_serializing_if = "Option::is_none")]
16  pub refresh_url: Option<String>,
17  #[serde(rename = "scopes")]
18  pub scopes: std::collections::BTreeMap<String, String>,
19}
20
21impl Implicit {
22  pub fn new(authorization_url: String, scopes: std::collections::BTreeMap<String, String>) -> Implicit {
23    Implicit { authorization_url, refresh_url: None, scopes }
24  }
25}