pub struct CaptchaOptionsBuilder { /* private fields */ }Implementations§
Source§impl CaptchaOptionsBuilder
impl CaptchaOptionsBuilder
pub fn provider(self, provider: CaptchaProvider) -> Self
pub fn secret_key(self, secret_key: impl Into<String>) -> Self
pub fn endpoints(self, endpoints: Vec<String>) -> 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
pub fn build(self) -> Result<CaptchaOptions, RustAuthError>
Trait Implementations§
Source§impl Clone for CaptchaOptionsBuilder
impl Clone for CaptchaOptionsBuilder
Source§fn clone(&self) -> CaptchaOptionsBuilder
fn clone(&self) -> CaptchaOptionsBuilder
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 CaptchaOptionsBuilder
impl Debug for CaptchaOptionsBuilder
Source§impl Default for CaptchaOptionsBuilder
impl Default for CaptchaOptionsBuilder
Source§fn default() -> CaptchaOptionsBuilder
fn default() -> CaptchaOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CaptchaOptionsBuilder
impl !UnwindSafe for CaptchaOptionsBuilder
impl Freeze for CaptchaOptionsBuilder
impl Send for CaptchaOptionsBuilder
impl Sync for CaptchaOptionsBuilder
impl Unpin for CaptchaOptionsBuilder
impl UnsafeUnpin for CaptchaOptionsBuilder
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