Skip to main content

hanzo_client/models/
issue_edit.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IssueEdit {
16    /// Description rewrites the body.
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19    /// Key is the board — the repository name, from the path.
20    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
21    pub key: Option<String>,
22    /// Num is the issue number on that repository, from the path.
23    #[serde(rename = "num", skip_serializing_if = "Option::is_none")]
24    pub num: Option<i32>,
25    /// Priority re-prioritises it.
26    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
27    pub priority: Option<String>,
28    /// Status moves the card to another column.
29    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
30    pub status: Option<String>,
31    /// Title renames the work item.
32    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
33    pub title: Option<String>,
34}
35
36impl IssueEdit {
37    pub fn new() -> IssueEdit {
38        IssueEdit {
39            description: None,
40            key: None,
41            num: None,
42            priority: None,
43            status: None,
44            title: None,
45        }
46    }
47}
48