jira_api_v2/models/
changed_value_bean.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/// ChangedValueBean : Details of names changed in the record event.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ChangedValueBean {
17    /// The name of the field changed.
18    #[serde(rename = "fieldName", skip_serializing_if = "Option::is_none")]
19    pub field_name: Option<String>,
20    /// The value of the field before the change.
21    #[serde(rename = "changedFrom", skip_serializing_if = "Option::is_none")]
22    pub changed_from: Option<String>,
23    /// The value of the field after the change.
24    #[serde(rename = "changedTo", skip_serializing_if = "Option::is_none")]
25    pub changed_to: Option<String>,
26}
27
28impl ChangedValueBean {
29    /// Details of names changed in the record event.
30    pub fn new() -> ChangedValueBean {
31        ChangedValueBean {
32            field_name: None,
33            changed_from: None,
34            changed_to: None,
35        }
36    }
37}
38