openapi_31/v31/
implicit.rs1use 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}