pub enum CaptchaState {
Skipped,
Passed,
TokenNotFound,
AnswerNotFound,
WrongToken,
WrongAnswer,
StorageError,
}Expand description
The captcha states of the request
Variants§
Skipped
The captcha check is skipped. This depends on the skipper.
Passed
The captcha is checked and passed. If the captcha is passed, it will be cleared from the storage.
TokenNotFound
Can’t find the captcha token in the request
AnswerNotFound
Can’t find the captcha answer in the request
WrongToken
Can’t find the captcha token in the storage or the token is wrong (not valid string)
WrongAnswer
Can’t find the captcha answer in the storage or the answer is wrong (not valid string)
StorageError
Storage error
Trait Implementations§
Source§impl Clone for CaptchaState
impl Clone for CaptchaState
Source§fn clone(&self) -> CaptchaState
fn clone(&self) -> CaptchaState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaptchaState
impl Debug for CaptchaState
Source§impl Default for CaptchaState
impl Default for CaptchaState
Source§fn default() -> CaptchaState
fn default() -> CaptchaState
Returns the “default value” for a type. Read more
Source§impl PartialEq for CaptchaState
impl PartialEq for CaptchaState
impl Copy for CaptchaState
impl Eq for CaptchaState
impl StructuralPartialEq for CaptchaState
Auto Trait Implementations§
impl Freeze for CaptchaState
impl RefUnwindSafe for CaptchaState
impl Send for CaptchaState
impl Sync for CaptchaState
impl Unpin for CaptchaState
impl UnwindSafe for CaptchaState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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