saas-rs-sdk 0.6.0

The SaaS RS SDK
1
2
3
4
5
6
7
8
9
10
11
use super::Error;
use async_trait::async_trait;
use std::path::Path;
use tempfile::NamedTempFile;

#[async_trait]
pub trait ObjectStore: Sync + Send {
    async fn del(&self, key: &str) -> Result<(), Error>;
    async fn get(&self, key: &str) -> Result<NamedTempFile, Error>;
    async fn put(&self, key: &str, path: &Path) -> Result<(), Error>;
}