Skip to main content

Crate omnicaptcha

Crate omnicaptcha 

Source
Expand description

§omnicaptcha

Umbrella facade crate for provider-independent CAPTCHA verification.

omnicaptcha reexports the public captcha-sdk API for projects that prefer a provider-neutral package name.

Provider-specific modules remain feature-gated and forward to the matching captcha-sdk features.

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.