41
crates/gitea-client/src/models/issue_form_field.rs
Normal file
41
crates/gitea-client/src/models/issue_form_field.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};
|
||||
|
||||
/// IssueFormField : IssueFormField represents a form field
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct IssueFormField {
|
||||
#[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
|
||||
pub attributes: Option<std::collections::HashMap<String, serde_json::Value>>,
|
||||
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||||
pub id: Option<String>,
|
||||
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
|
||||
pub r#type: Option<String>,
|
||||
#[serde(rename = "validations", skip_serializing_if = "Option::is_none")]
|
||||
pub validations: Option<std::collections::HashMap<String, serde_json::Value>>,
|
||||
#[serde(rename = "visible", skip_serializing_if = "Option::is_none")]
|
||||
pub visible: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
impl IssueFormField {
|
||||
/// IssueFormField represents a form field
|
||||
pub fn new() -> IssueFormField {
|
||||
IssueFormField {
|
||||
attributes: None,
|
||||
id: None,
|
||||
r#type: None,
|
||||
validations: None,
|
||||
visible: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user