pub struct FunCaptchaTaskBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> FunCaptchaTaskBuilder<S>
impl<S: State> FunCaptchaTaskBuilder<S>
Sourcepub fn build(self) -> FunCaptchaTaskwhere
S: IsComplete,
pub fn build(self) -> FunCaptchaTaskwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn website_url(
self,
value: impl Into<String>,
) -> FunCaptchaTaskBuilder<SetWebsiteUrl<S>>where
S::WebsiteUrl: IsUnset,
pub fn website_url(
self,
value: impl Into<String>,
) -> FunCaptchaTaskBuilder<SetWebsiteUrl<S>>where
S::WebsiteUrl: IsUnset,
Required.
URL of the page containing the challenge.
Sourcepub fn website_key(
self,
value: impl Into<String>,
) -> FunCaptchaTaskBuilder<SetWebsiteKey<S>>where
S::WebsiteKey: IsUnset,
pub fn website_key(
self,
value: impl Into<String>,
) -> FunCaptchaTaskBuilder<SetWebsiteKey<S>>where
S::WebsiteKey: IsUnset,
Required.
FunCaptcha public key.
Sourcepub fn data(self, value: impl Into<String>) -> FunCaptchaTaskBuilder<SetData<S>>where
S::Data: IsUnset,
pub fn data(self, value: impl Into<String>) -> FunCaptchaTaskBuilder<SetData<S>>where
S::Data: IsUnset,
Sourcepub fn maybe_data(
self,
value: Option<impl Into<String>>,
) -> FunCaptchaTaskBuilder<SetData<S>>where
S::Data: IsUnset,
pub fn maybe_data(
self,
value: Option<impl Into<String>>,
) -> FunCaptchaTaskBuilder<SetData<S>>where
S::Data: IsUnset,
Sourcepub fn api_js_subdomain(
self,
value: impl Into<String>,
) -> FunCaptchaTaskBuilder<SetApiJsSubdomain<S>>where
S::ApiJsSubdomain: IsUnset,
pub fn api_js_subdomain(
self,
value: impl Into<String>,
) -> FunCaptchaTaskBuilder<SetApiJsSubdomain<S>>where
S::ApiJsSubdomain: IsUnset,
Sourcepub fn maybe_api_js_subdomain(
self,
value: Option<impl Into<String>>,
) -> FunCaptchaTaskBuilder<SetApiJsSubdomain<S>>where
S::ApiJsSubdomain: IsUnset,
pub fn maybe_api_js_subdomain(
self,
value: Option<impl Into<String>>,
) -> FunCaptchaTaskBuilder<SetApiJsSubdomain<S>>where
S::ApiJsSubdomain: IsUnset,
Sourcepub fn proxy(
self,
value: impl Into<String>,
) -> FunCaptchaTaskBuilder<SetProxy<S>>where
S::Proxy: IsUnset,
pub fn proxy(
self,
value: impl Into<String>,
) -> FunCaptchaTaskBuilder<SetProxy<S>>where
S::Proxy: IsUnset,
Optional (Some / Option setters). Optional worker proxy.
FunCaptcha is the only task type using the FUN proxy format —
protocol://host:port:username:password, with the credentials appended
rather than placed before the host. Every other type takes
protocol://username:password@host:port.
Either way the service requires both a username and a password: an unauthenticated proxy is rejected.
Sourcepub fn maybe_proxy(
self,
value: Option<impl Into<String>>,
) -> FunCaptchaTaskBuilder<SetProxy<S>>where
S::Proxy: IsUnset,
pub fn maybe_proxy(
self,
value: Option<impl Into<String>>,
) -> FunCaptchaTaskBuilder<SetProxy<S>>where
S::Proxy: IsUnset,
Optional (Some / Option setters). Optional worker proxy.
FunCaptcha is the only task type using the FUN proxy format —
protocol://host:port:username:password, with the credentials appended
rather than placed before the host. Every other type takes
protocol://username:password@host:port.
Either way the service requires both a username and a password: an unauthenticated proxy is rejected.