gitea-rs/crates/gitea-client/src/models/license_template_info.rs
kjuulh e78d07db33
feat: find another name
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-09-23 22:29:11 +02:00

42 lines
1.2 KiB
Rust

/*
* 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<String>,
#[serde(rename = "implementation", skip_serializing_if = "Option::is_none")]
pub implementation: Option<String>,
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
impl LicenseTemplateInfo {
/// LicensesInfo contains information about a License
pub fn new() -> LicenseTemplateInfo {
LicenseTemplateInfo {
body: None,
implementation: None,
key: None,
name: None,
url: None,
}
}
}