use anyhow:Result

This commit is contained in:
weisd
2024-06-28 13:37:56 +08:00
parent a9e515e5c0
commit 4c7c3d4c96
10 changed files with 64 additions and 58 deletions
+6 -2
View File
@@ -1,5 +1,9 @@
use anyhow::Error;
use anyhow::Result;
pub struct MakeBucketOptions {}
pub trait StorageAPI {
async fn put_object(&self, bucket: &str, objcet: &str) -> Result<(), Error>;
async fn make_bucket(&self, bucket: &str, opts: &MakeBucketOptions) -> Result<()>;
async fn put_object(&self, bucket: &str, objcet: &str) -> Result<()>;
}