pub struct CaptchaOptions {
pub provider: CaptchaProvider,
pub secret_key: String,
pub endpoints: Vec<String>,
pub site_verify_url_override: Option<String>,
pub min_score: Option<f64>,
pub site_key: Option<String>,
pub http_client: Option<Client>,
}Fields§
§provider: CaptchaProvider§secret_key: String§endpoints: Vec<String>§site_verify_url_override: Option<String>§min_score: Option<f64>§site_key: Option<String>§http_client: Option<Client>Implementations§
Source§impl CaptchaOptions
impl CaptchaOptions
pub fn with_provider( provider: CaptchaProvider, secret_key: impl Into<String>, ) -> Self
pub fn cloudflare_turnstile(secret_key: impl Into<String>) -> Self
pub fn google_recaptcha(secret_key: impl Into<String>) -> Self
pub fn hcaptcha(secret_key: impl Into<String>) -> Self
pub fn captchafox(secret_key: impl Into<String>) -> Self
pub fn endpoints<I, S>(self, endpoints: I) -> Self
pub fn site_verify_url_override(self, url: impl Into<String>) -> Self
pub fn min_score(self, min_score: f64) -> Self
pub fn site_key(self, site_key: impl Into<String>) -> Self
pub fn http_client(self, http_client: Client) -> Self
Trait Implementations§
Source§impl Clone for CaptchaOptions
impl Clone for CaptchaOptions
Source§fn clone(&self) -> CaptchaOptions
fn clone(&self) -> CaptchaOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaptchaOptions
impl Debug for CaptchaOptions
Source§impl<'de> Deserialize<'de> for CaptchaOptions
impl<'de> Deserialize<'de> for CaptchaOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CaptchaOptions
impl !RefUnwindSafe for CaptchaOptions
impl Send for CaptchaOptions
impl Sync for CaptchaOptions
impl Unpin for CaptchaOptions
impl UnsafeUnpin for CaptchaOptions
impl !UnwindSafe for CaptchaOptions
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