// 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 MetricsStaleErrorLastRun {
    pub run_id: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub definition_fingerprint: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub score: Option<f64>,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub created_at: Option<String>,
}
impl MetricsStaleErrorLastRun {
    /// Construct a new `MetricsStaleErrorLastRun` with the required fields set.
    #[allow(deprecated)]
    pub fn new(run_id: impl Into<String>) -> Self {
        Self {
            run_id: run_id.into(),
            definition_fingerprint: Default::default(),
            score: Default::default(),
            created_at: Default::default(),
        }
    }
}
