// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Returned when the experiment has no runs at all.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ExperimentMetricsMissingError {
    /// Defaults to `no_metrics`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub kind: Option<String>,
    /// Defaults to `no_metrics`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub error: Option<String>,
    pub experiment_id: String,
    pub message: String,
}
impl ExperimentMetricsMissingError {
    /// Construct a new `ExperimentMetricsMissingError` with the required fields set.
    #[allow(deprecated)]
    pub fn new(experiment_id: impl Into<String>, message: impl Into<String>) -> Self {
        Self {
            kind: Default::default(),
            error: Default::default(),
            experiment_id: experiment_id.into(),
            message: message.into(),
        }
    }
}
