Skip to main content

Crate captcha_core

Crate captcha_core 

Source
Expand description

Core-name facade over captcha-sdk.

This crate intentionally adds no behavior of its own. It reexports the captcha-sdk API and forwards provider feature flags for applications that prefer the captcha-core package name.

Modules§

providers
Feature-gated provider adapter scaffolds.

Structs§

CaptchaToken
An opaque token produced by a CAPTCHA provider’s client-side widget.
ProviderId
A stable, validated identity for a CAPTCHA provider product.
VerificationError
Error raised when no normalized verification result can be produced.
VerificationRequest
Provider-independent input for one verification attempt.
VerificationResult
Provider-independent outcome of a CAPTCHA verification attempt.

Enums§

CaptchaTokenError
Reason a CAPTCHA token could not be accepted.
FailureReason
A normalized reason explaining why a CAPTCHA was not accepted.
InvalidProviderId
Reason a provider identifier could not be accepted.
VerificationErrorKind
Broad category for failures that prevent a verification result.

Constants§

MAX_CAPTCHA_TOKEN_LEN
Maximum accepted CAPTCHA token length, in bytes.
MAX_PROVIDER_ID_LEN
Maximum accepted length of a provider identifier, in ASCII bytes.
MAX_PROVIDER_ID_SEGMENT_LEN
Maximum accepted length of one provider identifier segment, in ASCII bytes.

Traits§

CaptchaVerifier
Provider-independent interface implemented by CAPTCHA adapters.

Type Aliases§

VerificationFuture
The boxed future returned by an object-safe CaptchaVerifier.