Skip to main content

ObjectOperations

Trait ObjectOperations 

Source
pub trait ObjectOperations:
    Send
    + Sync
    + Debug {
    type Error: Error + Send + Sync + 'static;
    type ObjectInfo: Send + 'static;
    type ObjectOptions: Send + Sync + 'static;
    type FileInfo: Send + Sync + 'static;
    type ObjectToDelete: Send + 'static;
    type DeletedObject: Send + 'static;

Show 14 methods // Required methods fn get_object_info<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn verify_object_integrity<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn copy_object<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>( &'life0 self, src_bucket: &'life1 str, src_object: &'life2 str, dst_bucket: &'life3 str, dst_object: &'life4 str, src_info: &'life5 mut Self::ObjectInfo, src_opts: &'life6 Self::ObjectOptions, dst_opts: &'life7 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait, 'life7: 'async_trait; fn delete_object_version<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, fi: &'life3 Self::FileInfo, force_del_marker: bool, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn delete_object<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn delete_objects<'life0, 'life1, 'async_trait>( &'life0 self, bucket: &'life1 str, objects: Vec<Self::ObjectToDelete>, opts: Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = (Vec<Self::DeletedObject>, Vec<Option<Self::Error>>)> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn put_object_metadata<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn get_object_tags<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn put_object_tags<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, tags: &'life3 str, opts: &'life4 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait; fn delete_object_tags<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn add_partial<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, version_id: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn transition_object<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn restore_transitioned_object<'life0, 'life1, 'life2, 'async_trait>( self: Arc<Self>, bucket: &'life0 str, object: &'life1 str, opts: &'life2 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; // Provided method fn delete_objects_with_accounting<'life0, 'life1, 'async_trait>( &'life0 self, bucket: &'life1 str, objects: Vec<Self::ObjectToDelete>, opts: Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = (Vec<Self::DeletedObject>, Vec<Option<Self::Error>>, Vec<Option<DeleteAccounting>>)> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... }
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Source

type ObjectInfo: Send + 'static

Source

type ObjectOptions: Send + Sync + 'static

Source

type FileInfo: Send + Sync + 'static

Source

type ObjectToDelete: Send + 'static

Source

type DeletedObject: Send + 'static

Required Methods§

Source

fn get_object_info<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn verify_object_integrity<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn copy_object<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>( &'life0 self, src_bucket: &'life1 str, src_object: &'life2 str, dst_bucket: &'life3 str, dst_object: &'life4 str, src_info: &'life5 mut Self::ObjectInfo, src_opts: &'life6 Self::ObjectOptions, dst_opts: &'life7 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait, 'life7: 'async_trait,

Source

fn delete_object_version<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, fi: &'life3 Self::FileInfo, force_del_marker: bool, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn delete_object<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_objects<'life0, 'life1, 'async_trait>( &'life0 self, bucket: &'life1 str, objects: Vec<Self::ObjectToDelete>, opts: Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = (Vec<Self::DeletedObject>, Vec<Option<Self::Error>>)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn put_object_metadata<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn get_object_tags<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<String, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn put_object_tags<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, tags: &'life3 str, opts: &'life4 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn delete_object_tags<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<Self::ObjectInfo, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn add_partial<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, version_id: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn transition_object<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, bucket: &'life1 str, object: &'life2 str, opts: &'life3 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn restore_transitioned_object<'life0, 'life1, 'life2, 'async_trait>( self: Arc<Self>, bucket: &'life0 str, object: &'life1 str, opts: &'life2 Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

Source

fn delete_objects_with_accounting<'life0, 'life1, 'async_trait>( &'life0 self, bucket: &'life1 str, objects: Vec<Self::ObjectToDelete>, opts: Self::ObjectOptions, ) -> Pin<Box<dyn Future<Output = (Vec<Self::DeletedObject>, Vec<Option<Self::Error>>, Vec<Option<DeleteAccounting>>)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete objects and optionally return commit-time accounting identities. The default preserves the ordinary delete contract for implementations that do not expose storage-level accounting details.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§