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