Skip to main content

Crate edgequake_sdk

Crate edgequake_sdk 

Source
Expand description

§EdgeQuake Rust SDK

A production-ready Rust client for the EdgeQuake RAG API.

§Quick start

use edgequake_sdk::EdgeQuakeClient;

#[tokio::main]
async fn main() -> edgequake_sdk::Result<()> {
    let client = EdgeQuakeClient::builder()
        .base_url("http://localhost:8080")
        .api_key("my-api-key")
        .build()?;

    let health = client.health().check().await?;
    println!("status: {}", health.status);
    Ok(())
}

Re-exports§

pub use client::ClientBuilder;
pub use client::EdgeQuakeClient;
pub use config::Auth;
pub use config::ClientConfig;
pub use config::TenantContext;
pub use error::Error;
pub use error::Result;

Modules§

client
HTTP client with builder pattern, retry, and auth/tenant middleware.
config
Configuration types for the EdgeQuake SDK.
error
Error types for the EdgeQuake SDK.
resources
Resource modules — thin wrappers borrowing &EdgeQuakeClient.
types
Shared types used across the SDK.