jira_api_v2/models/
field_last_used.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/// FieldLastUsed : Information about the most recent use of a field.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FieldLastUsed {
17    /// Last used value type:   *  *TRACKED*: field is tracked and a last used date is available.  *  *NOT\\_TRACKED*: field is not tracked, last used date is not available.  *  *NO\\_INFORMATION*: field is tracked, but no last used date is available.
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<Type>,
20    /// The date when the value of the field last changed.
21    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
22    pub value: Option<String>,
23}
24
25impl FieldLastUsed {
26    /// Information about the most recent use of a field.
27    pub fn new() -> FieldLastUsed {
28        FieldLastUsed {
29            r#type: None,
30            value: None,
31        }
32    }
33}
34/// Last used value type:   *  *TRACKED*: field is tracked and a last used date is available.  *  *NOT\\_TRACKED*: field is not tracked, last used date is not available.  *  *NO\\_INFORMATION*: field is tracked, but no last used date is available.
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Type {
37    #[serde(rename = "TRACKED")]
38    Tracked,
39    #[serde(rename = "NOT_TRACKED")]
40    NotTracked,
41    #[serde(rename = "NO_INFORMATION")]
42    NoInformation,
43}
44
45impl Default for Type {
46    fn default() -> Type {
47        Self::Tracked
48    }
49}
50