gitea_client/models/
edit_label_option.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EditLabelOption : EditLabelOption options for editing a label
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EditLabelOption {
17    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
18    pub color: Option<String>,
19    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
20    pub description: Option<String>,
21    #[serde(rename = "exclusive", skip_serializing_if = "Option::is_none")]
22    pub exclusive: Option<bool>,
23    #[serde(rename = "is_archived", skip_serializing_if = "Option::is_none")]
24    pub is_archived: Option<bool>,
25    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
26    pub name: Option<String>,
27}
28
29impl EditLabelOption {
30    /// EditLabelOption options for editing a label
31    pub fn new() -> EditLabelOption {
32        EditLabelOption {
33            color: None,
34            description: None,
35            exclusive: None,
36            is_archived: None,
37            name: None,
38        }
39    }
40}
41