fusionauth_rust_client/models/
captcha_method.rsuse crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CaptchaMethod {
#[serde(rename = "GoogleRecaptchaV2")]
GoogleRecaptchaV2,
#[serde(rename = "GoogleRecaptchaV3")]
GoogleRecaptchaV3,
#[serde(rename = "HCaptcha")]
HCaptcha,
#[serde(rename = "HCaptchaEnterprise")]
HCaptchaEnterprise,
}
impl std::fmt::Display for CaptchaMethod {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::GoogleRecaptchaV2 => write!(f, "GoogleRecaptchaV2"),
Self::GoogleRecaptchaV3 => write!(f, "GoogleRecaptchaV3"),
Self::HCaptcha => write!(f, "HCaptcha"),
Self::HCaptchaEnterprise => write!(f, "HCaptchaEnterprise"),
}
}
}
impl Default for CaptchaMethod {
fn default() -> CaptchaMethod {
Self::GoogleRecaptchaV2
}
}