Appwrite Rust SDK
This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check previous releases.
Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Rust SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to https://appwrite.io/docs

Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
= { = "1.48", = ["full"] }
Or using cargo add:
Getting Started
Init your SDK
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found on your project settings page and your new API secret Key from project's API keys section.
use Client;
let client = new
.set_endpoint // Your API Endpoint
.set_project // Your project ID
.set_key // Your secret API key
.set_self_signed; // Use only on dev mode with a self-signed SSL cert
Make Your First Request
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the API References section.
use Client;
use Users;
use ID;
let client = new
.set_endpoint
.set_project
.set_key
.set_self_signed;
let users = new;
let user = users.create.await?;
println!;
println!;
Error Handling
The Appwrite Rust SDK returns Result types. You can handle errors using standard Rust error handling patterns. Below is an example.
use AppwriteError;
match users.create.await
Learn more
You can use the following resources to learn more and get help
Contribution
This library is auto-generated by Appwrite custom SDK Generator. To learn more about how you can help us improve this SDK, please check the contribution guide before sending a pull-request.
License
Please see the BSD-3-Clause license file for more information.