pub struct ProviderId(/* private fields */);Expand description
A stable, validated identity for a CAPTCHA provider product.
Identifiers consist of lowercase ASCII segments separated by dots. Each
segment starts and ends with an ASCII letter or digit and may contain
internal hyphens. Third-party adapters should use a reverse-DNS namespace
they control, such as com.example.captcha.product.
Implementations§
Source§impl ProviderId
impl ProviderId
Sourcepub const ALTCHA_CUSTOM: ProviderId
pub const ALTCHA_CUSTOM: ProviderId
ALTCHA custom proof-of-work verification.
Sourcepub const ALTCHA_SENTINEL: ProviderId
pub const ALTCHA_SENTINEL: ProviderId
ALTCHA Sentinel verification.
Sourcepub const CAPTCHAFOX_STANDARD: ProviderId
pub const CAPTCHAFOX_STANDARD: ProviderId
CaptchaFox standard verification.
Sourcepub const CLOUDFLARE_TURNSTILE: ProviderId
pub const CLOUDFLARE_TURNSTILE: ProviderId
Cloudflare Turnstile verification.
Sourcepub const FRIENDLYCAPTCHA_V2: ProviderId
pub const FRIENDLYCAPTCHA_V2: ProviderId
Friendly Captcha v2 verification.
Sourcepub const GOOGLE_RECAPTCHA_ENTERPRISE: ProviderId
pub const GOOGLE_RECAPTCHA_ENTERPRISE: ProviderId
Google reCAPTCHA Enterprise verification.
Sourcepub const GOOGLE_RECAPTCHA_V2: ProviderId
pub const GOOGLE_RECAPTCHA_V2: ProviderId
Google reCAPTCHA v2 verification.
Sourcepub const GOOGLE_RECAPTCHA_V3: ProviderId
pub const GOOGLE_RECAPTCHA_V3: ProviderId
Google reCAPTCHA v3 verification.
Sourcepub const HCAPTCHA_ENTERPRISE: ProviderId
pub const HCAPTCHA_ENTERPRISE: ProviderId
hCaptcha Enterprise verification.
Sourcepub const HCAPTCHA_STANDARD: ProviderId
pub const HCAPTCHA_STANDARD: ProviderId
hCaptcha standard verification.
Sourcepub const MTCAPTCHA_STANDARD: ProviderId
pub const MTCAPTCHA_STANDARD: ProviderId
MTCaptcha standard verification.
Sourcepub const PROSOPO_PROCAPTCHA: ProviderId
pub const PROSOPO_PROCAPTCHA: ProviderId
Prosopo Procaptcha verification.
Sourcepub fn new(value: impl Into<String>) -> Result<ProviderId, InvalidProviderId>
pub fn new(value: impl Into<String>) -> Result<ProviderId, InvalidProviderId>
Validates and creates an open provider identifier.
Built-in authorities are reserved. Third-party IDs must use a namespace controlled by the adapter author, conventionally reverse DNS.
§Errors
Returns InvalidProviderId when the identifier exceeds a bound, has
invalid syntax, or claims a reserved built-in authority.
Trait Implementations§
Source§impl Clone for ProviderId
impl Clone for ProviderId
Source§fn clone(&self) -> ProviderId
fn clone(&self) -> ProviderId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more