qwed
Rust SDK for QWED Verification Protocol
Installation
Add to your Cargo.toml:
[]
= "1.0"
= { = "1.0", = ["rt-multi-thread", "macros"] }
Quick Start
use QWEDClient;
async
Verification Methods
Natural Language
let result = client.verify.await?;
Math Expressions
let result = client.verify_math.await?;
Logic (QWED-DSL)
let result = client.verify_logic.await?;
// result.result["satisfiability"] = "SAT"
Code Security
let result = client.verify_code.await?;
Fact Verification
let result = client.verify_fact.await?;
SQL Validation
let result = client.verify_sql.await?;
Batch Verification
use ;
let items = vec!;
let result = client.verify_batch.await?;
if let Some = result.summary
Client Configuration
use Duration;
let client = with_options;
Error Handling
use ;
match client.verify.await
Types
| Type | Description |
|---|---|
VerificationType |
Enum: Math, Logic, Stats, Fact, Code, Sql, etc. |
VerificationStatus |
Enum: Verified, Failed, Corrected, Blocked, etc. |
VerificationResponse |
Full verification result |
BatchResponse |
Batch operation result |
Error |
Error enum with Auth, RateLimit, Api variants |
Async Runtime
This crate requires tokio as the async runtime:
async
License
Apache 2.0