pub struct CaptchaHeaderFinder {
pub token_header: HeaderName,
pub answer_header: HeaderName,
}Expand description
Find the captcha token and answer from the header
Fields§
§token_header: HeaderNameThe header name of the captcha token
Default: “x-captcha-token”
answer_header: HeaderNameThe header name of the captcha answer
Default: “x-captcha-answer”
Implementations§
Source§impl CaptchaHeaderFinder
impl CaptchaHeaderFinder
Sourcepub fn token_header(self, token_header: HeaderName) -> Self
pub fn token_header(self, token_header: HeaderName) -> Self
Set the token header name
Sourcepub fn answer_header(self, answer_header: HeaderName) -> Self
pub fn answer_header(self, answer_header: HeaderName) -> Self
Set the answer header name
Trait Implementations§
Source§impl CaptchaFinder for CaptchaHeaderFinder
impl CaptchaFinder for CaptchaHeaderFinder
Source§impl Debug for CaptchaHeaderFinder
impl Debug for CaptchaHeaderFinder
Auto Trait Implementations§
impl !Freeze for CaptchaHeaderFinder
impl RefUnwindSafe for CaptchaHeaderFinder
impl Send for CaptchaHeaderFinder
impl Sync for CaptchaHeaderFinder
impl Unpin for CaptchaHeaderFinder
impl UnwindSafe for CaptchaHeaderFinder
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