jira_api_v2/models/
avatars.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/// Avatars : Details about system and custom avatars.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Avatars {
17    /// System avatars list.
18    #[serde(rename = "system", skip_serializing_if = "Option::is_none")]
19    pub system: Option<Vec<models::Avatar>>,
20    /// Custom avatars list.
21    #[serde(rename = "custom", skip_serializing_if = "Option::is_none")]
22    pub custom: Option<Vec<models::Avatar>>,
23}
24
25impl Avatars {
26    /// Details about system and custom avatars.
27    pub fn new() -> Avatars {
28        Avatars {
29            system: None,
30            custom: None,
31        }
32    }
33}
34