jira_v3_openapi 1.5.0

Jira Cloud platform REST API lib (OpenAPI document version: 1001.0.0-SNAPSHOT-37416ade0f89f7cb291510843b8a4bbd682b33a1)
Documentation
/*
 * The Jira Cloud platform REST API
 *
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT-37416ade0f89f7cb291510843b8a4bbd682b33a1
 * Contact: ecosystem@atlassian.com
 * Generated by: https://openapi-generator.tech
 */

#![cfg(feature = "version_api")]

use crate::models;
use serde::{Deserialize, Serialize};

/// FieldUpdateOperation : Details of an operation to perform on a field.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FieldUpdateOperation {
    /// The value to add to the field.
    #[serde(
        rename = "add",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub add: Option<Option<serde_json::Value>>,
    /// The field value to copy from another issue.
    #[serde(
        rename = "copy",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub copy: Option<Option<serde_json::Value>>,
    /// The value to edit in the field.
    #[serde(
        rename = "edit",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub edit: Option<Option<serde_json::Value>>,
    /// The value to removed from the field.
    #[serde(
        rename = "remove",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub remove: Option<Option<serde_json::Value>>,
    /// The value to set in the field.
    #[serde(
        rename = "set",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub set: Option<Option<serde_json::Value>>,
}

impl FieldUpdateOperation {
    /// Details of an operation to perform on a field.
    pub fn new() -> FieldUpdateOperation {
        FieldUpdateOperation {
            add: None,
            copy: None,
            edit: None,
            remove: None,
            set: None,
        }
    }
}