Skip to main content

Crate appwrite

Crate appwrite 

Source
Expand description

§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

§Installation

Add this to your Cargo.toml:

[dependencies]
appwrite = "0.1.0"

§Usage

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(())
}

Re-exports§

pub use client::Client;
pub use error::AppwriteError;
pub use input_file::InputFile;

Modules§

client
HTTP client for Appwrite API
enums
Enums for Appwrite SDK
error
Error types for Appwrite SDK
id
ID generation utilities for Appwrite SDK
input_file
Input file handling for Appwrite SDK
models
Data models for Appwrite SDK
operator
permission
Permission handling for Appwrite SDK
query
Query builder for Appwrite SDK
role
Role handling for Appwrite SDK
services
Service modules for Appwrite SDK

Constants§

SDK_LANGUAGE
SDK language
SDK_NAME
SDK name
SDK_PLATFORM
SDK platform
VERSION
SDK version

Type Aliases§

Result
Result type alias for SDK operations