pub trait BucketApi {
// Required methods
async fn list_buckets_async(&self) -> Result<Vec<Bucket>, BucketError>;
async fn create_bucket_async(
&self,
bucket_request: Bucket,
) -> Result<String, BucketError>;
async fn delete_bucket_async(
&self,
bucket_id: &str,
) -> Result<(), BucketError>;
async fn clear_bucket_async(
&self,
bucket_id: &str,
) -> Result<(), BucketError>;
async fn get_bucket_async(
&self,
bucket_id: &str,
) -> Result<BucketResponse, BucketError>;
}
Required Methods§
async fn list_buckets_async(&self) -> Result<Vec<Bucket>, BucketError>
async fn create_bucket_async( &self, bucket_request: Bucket, ) -> Result<String, BucketError>
async fn delete_bucket_async(&self, bucket_id: &str) -> Result<(), BucketError>
async fn clear_bucket_async(&self, bucket_id: &str) -> Result<(), BucketError>
async fn get_bucket_async( &self, bucket_id: &str, ) -> Result<BucketResponse, BucketError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.