gitea_rs/models/
issue_form_field.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// IssueFormField : IssueFormField represents a form field
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct IssueFormField {
17    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
18    pub attributes: Option<::std::collections::HashMap<String, serde_json::Value>>,
19    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
20    pub id: Option<String>,
21    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
22    pub r#type: Option<String>,
23    #[serde(rename = "validations", skip_serializing_if = "Option::is_none")]
24    pub validations: Option<::std::collections::HashMap<String, serde_json::Value>>,
25}
26
27impl IssueFormField {
28    /// IssueFormField represents a form field
29    pub fn new() -> IssueFormField {
30        IssueFormField {
31            attributes: None,
32            id: None,
33            r#type: None,
34            validations: None,
35        }
36    }
37}
38
39