// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// One changed field between two immutable version resources.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowVersionFieldDiff {
    pub field: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub from_value: Option<serde_json::Value>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub to_value: Option<serde_json::Value>,
}
impl WorkflowVersionFieldDiff {
    /// Construct a new `WorkflowVersionFieldDiff` with the required fields set.
    #[allow(deprecated)]
    pub fn new(field: impl Into<String>) -> Self {
        Self {
            field: field.into(),
            from_value: Default::default(),
            to_value: Default::default(),
        }
    }
}
