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§impl Clone for FakeCaptcha
impl Clone for FakeCaptcha
Source§fn clone(&self) -> FakeCaptcha
fn clone(&self) -> FakeCaptcha
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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