// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowExperiment {
    pub id: String,
    pub workflow_id: String,
    pub block_id: String,
    pub n_consensus: NConsensusValue,
    /// Defaults to `0`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub document_count: Option<i64>,
    pub name: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub last_run_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub created_at: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub updated_at: Option<String>,
    /// Defaults to `draft`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub status: Option<ExperimentPublicStatus>,
    pub block_type: ExperimentBlockType,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub score: Option<f64>,
    /// Defaults to `false`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub is_stale: Option<bool>,
    /// Defaults to `unknown`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub schema_drift: Option<ExperimentSchemaDriftStatus>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub schema_drift_detail: Option<String>,
}
