openapi-31 0.4.0

OpenAPI v3.1 Specification
Documentation
// OpenAPI v3.1.0 Specification
//
// OpenAPI inside OpenAPI
//
// The version of the OpenAPI document: 3.1.0
//
// Generated by: https://openapi-generator.tech

use crate::v31;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct License {
  #[serde(rename = "name")]
  pub name: String,
  #[serde(rename = "identifier", skip_serializing_if = "Option::is_none")]
  pub identifier: Option<String>,
  #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
  pub url: Option<String>,
}

impl License {
  pub fn new(name: String) -> License {
    License { name, identifier: None, url: None }
  }
}