pub enum CaptchaProvider {
CloudflareTurnstile {
secret_key: String,
expected_action: Option<String>,
allowed_hostnames: Vec<String>,
},
GoogleRecaptcha {
secret_key: String,
min_score: f64,
expected_action: Option<String>,
allowed_hostnames: Vec<String>,
},
HCaptcha {
secret_key: String,
site_key: Option<String>,
},
CaptchaFox {
secret_key: String,
site_key: Option<String>,
},
VercelBotId {
check_bot_id: Arc<dyn BotIdChecker>,
validate_request: Option<Arc<dyn BotIdRequestValidator>>,
},
}Expand description
Provider-specific options. Secrets are never included in plugin diagnostics.
Variants§
Implementations§
Source§impl CaptchaProvider
impl CaptchaProvider
pub fn cloudflare_turnstile(secret_key: impl Into<String>) -> Self
pub fn google_recaptcha(secret_key: impl Into<String>) -> Self
pub fn hcaptcha(secret_key: impl Into<String>) -> Self
pub fn captchafox(secret_key: impl Into<String>) -> Self
pub fn vercel_bot_id(check_bot_id: Arc<dyn BotIdChecker>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CaptchaProvider
impl !UnwindSafe for CaptchaProvider
impl Freeze for CaptchaProvider
impl Send for CaptchaProvider
impl Sync for CaptchaProvider
impl Unpin for CaptchaProvider
impl UnsafeUnpin for CaptchaProvider
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more