Crates.io | trustcaptcha-rust |
lib.rs | trustcaptcha-rust |
version | 1.0.3 |
source | src |
created_at | 2024-06-06 10:46:03.15565 |
updated_at | 2024-11-08 15:35:13.755344 |
description | Trustcaptcha library for Rust, providing captcha, security features, and GDPR-compliant user verification. |
homepage | https://www.trustcaptcha.com |
repository | https://github.com/Trustcaptcha/trustcaptcha-rust |
max_upload_size | |
id | 1263604 |
size | 10,915 |
The Rust library helps you to integrate Trustcaptcha into your Rust backend applications.
A captcha solution that protects you from bot attacks and puts a special focus on user experience and data protection.
You can find more information on your website: www.trustcaptcha.com.
Detailed instructions and examples for using the library can be found in our documentation.
Here you can see a short code example of a possible integration. Please refer to our provided documentation for complete and up-to-date integration instructions.
Installing the library
cargo add trustcaptcha-rust
Fetching and handling the result
// Retrieving the verification result
let verification_result = match CaptchaManager::get_verification_result(secret_key, "<verification_token_from_your_client>").await
// Do something with the verification result
if !verification_result.verification_passed || verification_result.score > 0.5 {
info!("Verification failed, or bot score is higher than 0.5 – this could indicate a bot.");
}
If you have any ideas, suggestions, or need support, please contact us.