pub struct FakeCaptcha { /* private fields */ }Implementations§
Source§impl FakeCaptcha
impl FakeCaptcha
Sourcepub fn with_tokens(tokens: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn with_tokens(tokens: impl IntoIterator<Item = impl Into<String>>) -> Self
Only the listed tokens verify.
Trait Implementations§
Source§impl Captcha for FakeCaptcha
impl Captcha for FakeCaptcha
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
token: &'life1 str,
_remote_ip: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Verdict, CaptchaError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn binding(&self) -> Option<CaptchaBinding>
fn binding(&self) -> Option<CaptchaBinding>
What this adapter is bound to, as far as it can say.
None (the
default) means the adapter does not report: the harness treats it
as effective when the port is present, and the adapter carries the
duty to fail closed per request. Adapters that can report should
override this so HarnessBuilder::build can refuse a production
venture that would boot with verification silently unavailable.Auto Trait Implementations§
impl Freeze for FakeCaptcha
impl RefUnwindSafe for FakeCaptcha
impl Send for FakeCaptcha
impl Sync for FakeCaptcha
impl Unpin for FakeCaptcha
impl UnsafeUnpin for FakeCaptcha
impl UnwindSafe for FakeCaptcha
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