pub struct CaptchaConfig {
pub charset: String,
pub noise_level: f32,
pub expires_after_secs: u64,
pub max_attempts_per_minute: u32,
pub max_failures: u32,
pub bypass: bool,
}Expand description
Captcha generation and verification policy.
Fields§
§charset: StringAllowed challenge characters.
noise_level: f32Noise intensity from zero through one.
expires_after_secs: u64Challenge lifetime in seconds.
max_attempts_per_minute: u32Maximum attempts per minute.
max_failures: u32Failed verification attempts allowed before a challenge is invalidated.
The captcha verifier owns the attempt counter. This value is the
per-challenge ceiling and is independent of the issuance rate limit in
Self::max_attempts_per_minute.
bypass: boolExplicit development-only bypass flag.
Implementations§
Trait Implementations§
Source§impl Clone for CaptchaConfig
impl Clone for CaptchaConfig
Source§impl Debug for CaptchaConfig
impl Debug for CaptchaConfig
Source§impl Default for CaptchaConfig
impl Default for CaptchaConfig
Source§impl PartialEq for CaptchaConfig
impl PartialEq for CaptchaConfig
impl StructuralPartialEq for CaptchaConfig
Auto Trait Implementations§
impl Freeze for CaptchaConfig
impl RefUnwindSafe for CaptchaConfig
impl Send for CaptchaConfig
impl Sync for CaptchaConfig
impl Unpin for CaptchaConfig
impl UnsafeUnpin for CaptchaConfig
impl UnwindSafe for CaptchaConfig
Blanket Implementations§
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