// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Reference to the workflow + immutable version that drove the run.
/// The class name is retained temporarily for compatibility with surrounding
/// run-model code, but public API output uses ``version_id`` rather than
/// snapshot identity.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowSnapshotRef {
    /// ID of the workflow that was run
    pub workflow_id: String,
    /// Content-addressed workflow version used for this run.
    pub version_id: String,
    /// Workflow name as it was at run-creation time (denormalized for display).
    pub name_at_run_time: String,
    /// Raw version selector requested when this run was created
    ///
    /// Defaults to `production`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub requested_version: Option<String>,
}
