jira_api_v2/models/
found_group.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/// FoundGroup : A group found in a search.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FoundGroup {
17    /// The name of the group.
18    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// The group name with the matched query string highlighted with the HTML bold tag.
21    #[serde(rename = "html", skip_serializing_if = "Option::is_none")]
22    pub html: Option<String>,
23    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
24    pub labels: Option<Vec<models::GroupLabel>>,
25    /// The ID of the group, if available, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*.
26    #[serde(rename = "groupId", skip_serializing_if = "Option::is_none")]
27    pub group_id: Option<String>,
28}
29
30impl FoundGroup {
31    /// A group found in a search.
32    pub fn new() -> FoundGroup {
33        FoundGroup {
34            name: None,
35            html: None,
36            labels: None,
37            group_id: None,
38        }
39    }
40}
41