gitea_rs/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.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// EditLabelOption : EditLabelOption options for editing a label
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, 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 = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25}
26
27impl EditLabelOption {
28    /// EditLabelOption options for editing a label
29    pub fn new() -> EditLabelOption {
30        EditLabelOption {
31            color: None,
32            description: None,
33            exclusive: None,
34            name: None,
35        }
36    }
37}
38
39