fusionauth_rust_client/models/
form_field_validator.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FormFieldValidator {
17 #[serde(rename = "expression", skip_serializing_if = "Option::is_none")]
18 pub expression: Option<String>,
19 #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
20 pub enabled: Option<bool>,
21}
22
23impl FormFieldValidator {
24 pub fn new() -> FormFieldValidator {
26 FormFieldValidator {
27 expression: None,
28 enabled: None,
29 }
30 }
31}
32