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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! # Appwrite SDK for Rust
//!
//! Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
//!
//! ## Installation
//!
//! Add this to your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! appwrite = "0.3.0"
//! ```
//!
//! ## Usage
//!
//! ```rust
//! use appwrite::Client;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = Client::new()
//! .set_endpoint("https://cloud.appwrite.io/v1")
//! .set_project("your-project-id")
//! .set_key("your-api-key");
//!
//! // Use the client to make API calls
//! Ok(())
//! }
//! ```
// Utility modules
// Re-export commonly used types
pub use Client;
pub use AppwriteError;
pub use InputFile;
/// Result type alias for SDK operations
pub type Result<T> = Result;
/// SDK version
pub const VERSION: &str = "0.3.0";
/// SDK name
pub const SDK_NAME: &str = "Rust";
/// SDK platform
pub const SDK_PLATFORM: &str = "server";
/// SDK language
pub const SDK_LANGUAGE: &str = "rust";