1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! # Cloudreve API Client
//!
//! A comprehensive Rust client for the Cloudreve API with automatic token refresh support.
//!
//! ## Features
//!
//! - Automatic access token refresh when expired
//! - Comprehensive error handling
//! - Type-safe API methods
//! - Support for all Cloudreve API endpoints
//!
//! ## Example
//!
//! ```no_run
//! use cloudreve_sdk_api::{Client, ClientConfig};
//! use cloudreve_sdk_api::api::user::UserApi;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let config = ClientConfig::new("https://your-cloudreve-instance.com");
//! let client = Client::new(config);
//!
//! // Login and get tokens
//! let login_response = client.login("user@example.com", "password").await?;
//!
//! // Set tokens for subsequent requests
//! client.set_tokens(
//! login_response.token.access_token,
//! login_response.token.refresh_token
//! ).await;
//!
//! // Use the API - tokens will be automatically refreshed if needed
//! let user = client.get_user_me().await?;
//! println!("Hello, {}!", user.nickname);
//!
//! Ok(())
//! }
//! ```
pub use Boolset;
pub use ;
pub use ;