// 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 LengthCompareCondition {
    /// Defaults to `length_compare`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub kind: Option<String>,
    pub op: LengthCompareConditionOp,
    pub expected: i64,
}
impl LengthCompareCondition {
    /// Construct a new `LengthCompareCondition` with the required fields set.
    #[allow(deprecated)]
    pub fn new(op: LengthCompareConditionOp, expected: i64) -> Self {
        Self {
            kind: Default::default(),
            op,
            expected,
        }
    }
}
