Skip to main content

voltaria_sdk/
lib.rs

1//! # Voltaria API SDK
2//!
3//! The official Rust SDK for the Voltaria API.
4//!
5//! ## Getting Started
6//!
7//! ```rust
8//! use voltaria_api::prelude::*;
9//!
10//! #[tokio::main]
11//! async fn main() {
12//!     let config = ClientConfig {
13//!         token: Some("<token>".to_string()),
14//!         ..Default::default()
15//!     };
16//!     let client = ApiClient::new(config).expect("Failed to build client");
17//!     client
18//!         .clients
19//!         .list_clients(
20//!             &ListClientsQueryRequest {
21//!                 ..Default::default()
22//!             },
23//!             None,
24//!         )
25//!         .await;
26//! }
27//! ```
28//!
29//! ## Modules
30//!
31//! - [`api`] - Core API types and models
32//! - [`client`] - Client implementations
33//! - [`config`] - Configuration options
34//! - [`core`] - Core utilities and infrastructure
35//! - [`error`] - Error types and handling
36//! - [`prelude`] - Common imports for convenience
37
38pub mod api;
39pub mod client;
40pub mod config;
41pub mod core;
42pub mod environment;
43pub mod error;
44pub mod prelude;
45pub mod voltaria;
46
47pub use api::*;
48pub use client::*;
49pub use config::*;
50pub use core::*;
51pub use environment::*;
52pub use error::{ApiError, BuildError};