// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Gate when the field at `path` has consensus likelihood below `threshold`.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ReviewFieldConfidenceLt {
    /// Defaults to `field_confidence_lt`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub kind: Option<String>,
    /// JSONPath-style path, e.g. '$.invoice.total' or 'invoice.total'
    pub path: String,
    pub threshold: f64,
}
impl ReviewFieldConfidenceLt {
    /// Construct a new `ReviewFieldConfidenceLt` with the required fields set.
    #[allow(deprecated)]
    pub fn new(path: impl Into<String>, threshold: f64) -> Self {
        Self {
            kind: Default::default(),
            path: path.into(),
            threshold,
        }
    }
}
