fusionauth_rust_client/models/
captcha_method.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum CaptchaMethod {
18 #[serde(rename = "GoogleRecaptchaV2")]
19 GoogleRecaptchaV2,
20 #[serde(rename = "GoogleRecaptchaV3")]
21 GoogleRecaptchaV3,
22 #[serde(rename = "HCaptcha")]
23 HCaptcha,
24 #[serde(rename = "HCaptchaEnterprise")]
25 HCaptchaEnterprise,
26
27}
28
29impl std::fmt::Display for CaptchaMethod {
30 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31 match self {
32 Self::GoogleRecaptchaV2 => write!(f, "GoogleRecaptchaV2"),
33 Self::GoogleRecaptchaV3 => write!(f, "GoogleRecaptchaV3"),
34 Self::HCaptcha => write!(f, "HCaptcha"),
35 Self::HCaptchaEnterprise => write!(f, "HCaptchaEnterprise"),
36 }
37 }
38}
39
40impl Default for CaptchaMethod {
41 fn default() -> CaptchaMethod {
42 Self::GoogleRecaptchaV2
43 }
44}
45