41
crates/gitea-client/src/models/license_template_info.rs
Normal file
41
crates/gitea-client/src/models/license_template_info.rs
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* 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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user