// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Public workflow-eval target.
/// The storage layer remains block-scoped today, but the API shape names the
/// tested entity explicitly so workflow-level targets can be added later.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowEvalBlockTarget {
    /// Defaults to `block`.
    #[serde(rename = "type")]
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub type_: Option<String>,
    pub block_id: String,
}
impl WorkflowEvalBlockTarget {
    /// Construct a new `WorkflowEvalBlockTarget` with the required fields set.
    #[allow(deprecated)]
    pub fn new(block_id: impl Into<String>) -> Self {
        Self {
            type_: Default::default(),
            block_id: block_id.into(),
        }
    }
}
