jira_api_v2/models/
suggested_issue.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SuggestedIssue : An issue suggested for use in the issue picker auto-completion.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SuggestedIssue {
17    /// The ID of the issue.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The key of the issue.
21    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
22    pub key: Option<String>,
23    /// The key of the issue in HTML format.
24    #[serde(rename = "keyHtml", skip_serializing_if = "Option::is_none")]
25    pub key_html: Option<String>,
26    /// The URL of the issue type's avatar.
27    #[serde(rename = "img", skip_serializing_if = "Option::is_none")]
28    pub img: Option<String>,
29    /// The phrase containing the query string in HTML format, with the string highlighted with HTML bold tags.
30    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
31    pub summary: Option<String>,
32    /// The phrase containing the query string, as plain text.
33    #[serde(rename = "summaryText", skip_serializing_if = "Option::is_none")]
34    pub summary_text: Option<String>,
35}
36
37impl SuggestedIssue {
38    /// An issue suggested for use in the issue picker auto-completion.
39    pub fn new() -> SuggestedIssue {
40        SuggestedIssue {
41            id: None,
42            key: None,
43            key_html: None,
44            img: None,
45            summary: None,
46            summary_text: None,
47        }
48    }
49}
50