// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Create a workflow eval run. Provide a `workflow_id`, and optionally narrow execution with `scope` to a single eval or one block. Omit `scope` to run every saved workflow eval.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateWorkflowEvalRunRequest {
    pub workflow_id: String,
    /// Optional execution scope. Omit (or pass null) to run every saved eval in the workflow.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub scope: Option<CreateWorkflowEvalRunRequestScopeOneOf>,
}
impl CreateWorkflowEvalRunRequest {
    /// Construct a new `CreateWorkflowEvalRunRequest` with the required fields set.
    #[allow(deprecated)]
    pub fn new(workflow_id: impl Into<String>) -> Self {
        Self {
            workflow_id: workflow_id.into(),
            scope: Default::default(),
        }
    }
}
