fusionauth_rust_client/models/
tenant_captcha_configuration.rs

1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.60.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TenantCaptchaConfiguration : 
15#[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    /// 
31    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