// 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 WorkflowConfigEdge {
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub id: Option<String>,
    /// ID of the source block
    pub source: String,
    /// ID of the target block
    pub target: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub source_handle: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub target_handle: Option<String>,
    /// Defaults to `true`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub animated: Option<bool>,
}
impl WorkflowConfigEdge {
    /// Construct a new `WorkflowConfigEdge` with the required fields set.
    #[allow(deprecated)]
    pub fn new(source: impl Into<String>, target: impl Into<String>) -> Self {
        Self {
            id: Default::default(),
            source: source.into(),
            target: target.into(),
            source_handle: Default::default(),
            target_handle: Default::default(),
            animated: Default::default(),
        }
    }
}
