openapi_31/v31/
server.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 Server {
13  #[serde(rename = "url")]
14  pub url: String,
15  #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
16  pub description: Option<String>,
17  #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
18  pub variables: Option<std::collections::BTreeMap<String, v31::ServerVariable>>,
19}
20
21impl Server {
22  pub fn new(url: String) -> Server {
23    Server { url, description: None, variables: None }
24  }
25}