// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowEdgeVersionDiff {
    pub from_edge_version_id: String,
    pub to_edge_version_id: String,
    pub edge_id: String,
    /// Defaults to `[]`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub changes: Option<Vec<WorkflowVersionFieldDiff>>,
}
impl WorkflowEdgeVersionDiff {
    /// Construct a new `WorkflowEdgeVersionDiff` with the required fields set.
    #[allow(deprecated)]
    pub fn new(
        from_edge_version_id: impl Into<String>,
        to_edge_version_id: impl Into<String>,
        edge_id: impl Into<String>,
    ) -> Self {
        Self {
            from_edge_version_id: from_edge_version_id.into(),
            to_edge_version_id: to_edge_version_id.into(),
            edge_id: edge_id.into(),
            changes: Default::default(),
        }
    }
}
