jira_api_v2/models/auto_complete_suggestion.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/// AutoCompleteSuggestion : A field auto-complete suggestion.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AutoCompleteSuggestion {
17 /// The value of a suggested item.
18 #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
19 pub value: Option<String>,
20 /// The display name of a suggested item. If `fieldValue` or `predicateValue` are provided, the matching text is highlighted with the HTML bold tag.
21 #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
22 pub display_name: Option<String>,
23}
24
25impl AutoCompleteSuggestion {
26 /// A field auto-complete suggestion.
27 pub fn new() -> AutoCompleteSuggestion {
28 AutoCompleteSuggestion {
29 value: None,
30 display_name: None,
31 }
32 }
33}
34