// 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 SimilarityGteCondition {
    /// Defaults to `similarity_gte`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub kind: Option<String>,
    pub reference: serde_json::Value,
    pub threshold: f64,
    /// Defaults to `levenshtein`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub method: Option<SimilarityGteConditionMethod>,
}
impl SimilarityGteCondition {
    /// Construct a new `SimilarityGteCondition` with the required fields set.
    #[allow(deprecated)]
    pub fn new(reference: serde_json::Value, threshold: f64) -> Self {
        Self {
            kind: Default::default(),
            reference,
            threshold,
            method: Default::default(),
        }
    }
}
