arxivis-rs
Official Rust SDK for the Arxivis document store.
Requirements
- Rust 2021 edition (MSRV: 1.75)
- Tokio async runtime
Installation
Add to your Cargo.toml:
[]
= { = "./sdk/rust" }
= { = "1", = ["full"] }
Quick start
use ;
async
API reference
ArxivisClient
// Create
let client = new?;
// Custom timeout
use Duration;
let client = new?
.with_timeout?;
| Method | Return | Description |
|---|---|---|
get_stats() |
Stats |
Aggregate storage statistics |
upload(data, filename, opts) |
FileRecord |
Upload raw bytes |
list(path, opts) |
ListResult |
Paginated file listing |
get(id) |
FileRecord |
Fetch file metadata |
download(id) |
Bytes |
Download raw bytes |
delete_file(id) |
() |
Soft-delete a file |
download_zip(ids) |
Bytes |
Export files as ZIP |
create_folder(path) |
String |
Create virtual folder |
search(query, opts) |
ListResult |
Full-text search (FTS5) |
semantic_search(query, opts) |
SearchResult |
Vector similarity search |
hybrid_search(query, opts) |
SearchResult |
FTS5 + semantic fusion |
create_key(name) |
CreateKeyResult |
Create API key |
list_keys() |
Vec<ApiKey> |
List API keys |
revoke_key(id) |
() |
Revoke an API key |
download_url(id) |
String |
Direct download URL |
preview_url(id) |
String |
Inline preview URL |
path_url(file_path) |
String |
Virtual-path URL |
UploadOptions builder
use UploadOptions;
let opts = new
.path
.tags
.compress
.encrypt;
ListOptions / SearchOptions
use ;
let list_opts = new.limit.offset;
let search_opts = new.limit;
ArxivisError
use ArxivisError;
match client.get.await
License
MIT