// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Result of cancelling an experiment run: the run `id` and its resulting `lifecycle` state.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CancelWorkflowExperimentRunResponse {
    pub id: String,
    pub lifecycle: CancelWorkflowExperimentRunResponseLifecycleOneOf,
}
impl CancelWorkflowExperimentRunResponse {
    /// Construct a new `CancelWorkflowExperimentRunResponse` with the required fields set.
    #[allow(deprecated)]
    pub fn new(
        id: impl Into<String>,
        lifecycle: CancelWorkflowExperimentRunResponseLifecycleOneOf,
    ) -> Self {
        Self {
            id: id.into(),
            lifecycle,
        }
    }
}
