/* * Gitea API * * This documentation describes the Gitea API. * * The version of the OpenAPI document: 1.22.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::{Deserialize, Serialize}; /// LicenseTemplateInfo : LicensesInfo contains information about a License #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct LicenseTemplateInfo { #[serde(rename = "body", skip_serializing_if = "Option::is_none")] pub body: Option, #[serde(rename = "implementation", skip_serializing_if = "Option::is_none")] pub implementation: Option, #[serde(rename = "key", skip_serializing_if = "Option::is_none")] pub key: Option, #[serde(rename = "name", skip_serializing_if = "Option::is_none")] pub name: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] pub url: Option, } impl LicenseTemplateInfo { /// LicensesInfo contains information about a License pub fn new() -> LicenseTemplateInfo { LicenseTemplateInfo { body: None, implementation: None, key: None, name: None, url: None, } } }