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: Self
pub const ALTCHA_CUSTOM: Self
ALTCHA custom proof-of-work verification.
Sourcepub const ALTCHA_SENTINEL: Self
pub const ALTCHA_SENTINEL: Self
ALTCHA Sentinel verification.
Sourcepub const CAPTCHAFOX_STANDARD: Self
pub const CAPTCHAFOX_STANDARD: Self
CaptchaFox standard verification.
Sourcepub const CLOUDFLARE_TURNSTILE: Self
pub const CLOUDFLARE_TURNSTILE: Self
Cloudflare Turnstile verification.
Sourcepub const FRIENDLYCAPTCHA_V2: Self
pub const FRIENDLYCAPTCHA_V2: Self
Friendly Captcha v2 verification.
Sourcepub const GOOGLE_RECAPTCHA_ENTERPRISE: Self
pub const GOOGLE_RECAPTCHA_ENTERPRISE: Self
Google reCAPTCHA Enterprise verification.
Sourcepub const GOOGLE_RECAPTCHA_V2: Self
pub const GOOGLE_RECAPTCHA_V2: Self
Google reCAPTCHA v2 verification.
Sourcepub const GOOGLE_RECAPTCHA_V3: Self
pub const GOOGLE_RECAPTCHA_V3: Self
Google reCAPTCHA v3 verification.
Sourcepub const HCAPTCHA_ENTERPRISE: Self
pub const HCAPTCHA_ENTERPRISE: Self
hCaptcha Enterprise verification.
Sourcepub const HCAPTCHA_STANDARD: Self
pub const HCAPTCHA_STANDARD: Self
hCaptcha standard verification.
Sourcepub const MTCAPTCHA_STANDARD: Self
pub const MTCAPTCHA_STANDARD: Self
MTCaptcha standard verification.
Sourcepub const PROSOPO_PROCAPTCHA: Self
pub const PROSOPO_PROCAPTCHA: Self
Prosopo Procaptcha verification.
Sourcepub fn new(value: impl Into<String>) -> Result<Self, InvalidProviderId>
pub fn new(value: impl Into<String>) -> Result<Self, 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