// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Gate when (top1_prob - top2_prob) < `margin` — model was torn.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ReviewTopMarginLt {
    /// Defaults to `top_margin_lt`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub kind: Option<String>,
    pub margin: f64,
}
impl ReviewTopMarginLt {
    /// Construct a new `ReviewTopMarginLt` with the required fields set.
    #[allow(deprecated)]
    pub fn new(margin: f64) -> Self {
        Self {
            kind: Default::default(),
            margin,
        }
    }
}
