Skip to main content

hanzo_client/models/
new_issue.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 NewIssue {
16    /// Description becomes the issue 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    /// Priority is one of none, urgent, high, medium or low.
23    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
24    pub priority: Option<String>,
25    /// Status is the board column to open into: backlog, todo, in_progress, done or canceled. Empty opens into backlog.
26    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
27    pub status: Option<String>,
28    /// Title is the one line the card is read by on the board. Blank or whitespace is refused — an untitled card cannot be told apart from any other.
29    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
30    pub title: Option<String>,
31}
32
33impl NewIssue {
34    pub fn new() -> NewIssue {
35        NewIssue {
36            description: None,
37            key: None,
38            priority: None,
39            status: None,
40            title: None,
41        }
42    }
43}
44