// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// A workflow exported as its YAML definition.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DeclarativeExportResponse {
    pub workflow_id: String,
    pub yaml_definition: String,
}
impl DeclarativeExportResponse {
    /// Construct a new `DeclarativeExportResponse` with the required fields set.
    #[allow(deprecated)]
    pub fn new(workflow_id: impl Into<String>, yaml_definition: impl Into<String>) -> Self {
        Self {
            workflow_id: workflow_id.into(),
            yaml_definition: yaml_definition.into(),
        }
    }
}
