pub trait BucketMetadataApi: Send + Sync {
// Required methods
fn export_bucket_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
bucket: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<BucketMetadataArchive>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn import_bucket_metadata<'life0, 'async_trait>(
&'life0 self,
archive: BucketMetadataArchive,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn export_bucket_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
bucket: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<BucketMetadataArchive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export_bucket_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
bucket: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<BucketMetadataArchive>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Export every bucket, or one selected bucket, as a bounded ZIP archive.
Sourcefn import_bucket_metadata<'life0, 'async_trait>(
&'life0 self,
archive: BucketMetadataArchive,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn import_bucket_metadata<'life0, 'async_trait>(
&'life0 self,
archive: BucketMetadataArchive,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Import a prevalidated bounded archive. Mutations are never retried automatically.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".