pub struct CaptchaQueryFinder {
pub token_name: String,
pub answer_name: String,
}Expand description
Find the captcha token and answer from the url query
Fields§
§token_name: StringThe query name of the captcha token
Default: “c_t”
answer_name: StringThe query name of the captcha answer
Default: “c_a”
Implementations§
Source§impl CaptchaQueryFinder
impl CaptchaQueryFinder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new CaptchaQueryFinder
Sourcepub fn token_name(self, token_name: String) -> Self
pub fn token_name(self, token_name: String) -> Self
Set the token query name
Sourcepub fn answer_name(self, answer_name: String) -> Self
pub fn answer_name(self, answer_name: String) -> Self
Set the answer query name
Trait Implementations§
Source§impl CaptchaFinder for CaptchaQueryFinder
impl CaptchaFinder for CaptchaQueryFinder
Source§impl Debug for CaptchaQueryFinder
impl Debug for CaptchaQueryFinder
Source§impl Default for CaptchaQueryFinder
impl Default for CaptchaQueryFinder
Source§fn default() -> Self
fn default() -> Self
Create a default CaptchaQueryFinder with:
- token_name: “c_t”
- answer_name: “c_a”
Auto Trait Implementations§
impl Freeze for CaptchaQueryFinder
impl RefUnwindSafe for CaptchaQueryFinder
impl Send for CaptchaQueryFinder
impl Sync for CaptchaQueryFinder
impl Unpin for CaptchaQueryFinder
impl UnwindSafe for CaptchaQueryFinder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more