jira/gen/models/
custom_field_replacement.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
11/// CustomFieldReplacement : Details about the replacement for a deleted version.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct CustomFieldReplacement {
15    /// The ID of the custom field in which to replace the version number.
16    #[serde(rename = "customFieldId", skip_serializing_if = "Option::is_none")]
17    pub custom_field_id: Option<i64>,
18    /// The version number to use as a replacement for the deleted version.
19    #[serde(rename = "moveTo", skip_serializing_if = "Option::is_none")]
20    pub move_to: Option<i64>,
21}
22
23impl CustomFieldReplacement {
24    /// Details about the replacement for a deleted version.
25    pub fn new() -> CustomFieldReplacement {
26        CustomFieldReplacement {
27            custom_field_id: None,
28            move_to: None,
29        }
30    }
31}