fusionauth_rust_client/models/
tenant_captcha_configuration.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TenantCaptchaConfiguration {
17 #[serde(rename = "captchaMethod", skip_serializing_if = "Option::is_none")]
18 pub captcha_method: Option<models::CaptchaMethod>,
19 #[serde(rename = "secretKey", skip_serializing_if = "Option::is_none")]
20 pub secret_key: Option<String>,
21 #[serde(rename = "siteKey", skip_serializing_if = "Option::is_none")]
22 pub site_key: Option<String>,
23 #[serde(rename = "threshold", skip_serializing_if = "Option::is_none")]
24 pub threshold: Option<f64>,
25 #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
26 pub enabled: Option<bool>,
27}
28
29impl TenantCaptchaConfiguration {
30 pub fn new() -> TenantCaptchaConfiguration {
32 TenantCaptchaConfiguration {
33 captcha_method: None,
34 secret_key: None,
35 site_key: None,
36 threshold: None,
37 enabled: None,
38 }
39 }
40}
41