Crates.io | ass-rs |
lib.rs | ass-rs |
version | 3.0.0 |
source | src |
created_at | 2019-01-30 19:13:33.628145 |
updated_at | 2020-07-20 12:43:43.544799 |
description | A library for working with Aptoma Smooth Storage |
homepage | |
repository | https://github.com/mipli/ass-rs |
max_upload_size | |
id | 111687 |
size | 24,017 |
A library for working with Aptoma Smooth Storage.
use ass_rs::{AssClient, AssError, file_handling, image_handling};
let ass_client = AssClient::create("https://url-to-storage", "account-name", "secretkey")?;
let image_url = image_handling::get_image_url(&ass_client, 123)?;
let image_data = image_handling::get_image_data(&ass_client, 123)?;
let file_data = file_handling::upload_file(&ass_client, "/data/file.pdf", "/destination")?;
let image_data = file_handling::upload_image(&ass_client, "/data/image.jpg")?;