pub struct GcpCloudStorage;Expand description
Stub implementation for GCP Cloud Storage.
Implementations§
Trait Implementations§
Source§impl CloudStorage for GcpCloudStorage
impl CloudStorage for GcpCloudStorage
Source§fn get_object<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_object<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Gets an object by key. Read more
Source§fn put_object<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_key: &'life1 str,
_data: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put_object<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_key: &'life1 str,
_data: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Puts an object with key. Read more
Source§fn delete_object<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_object<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes an object. Read more
Source§fn list_objects<'life0, 'life1, 'async_trait>(
&'life0 self,
_prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_objects<'life0, 'life1, 'async_trait>(
&'life0 self,
_prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Lists objects with a given prefix. Read more
Source§fn get_object_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ObjectMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_object_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ObjectMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Gets object metadata without fetching the full object. Read more
Source§fn provider_name(&self) -> &str
fn provider_name(&self) -> &str
Gets the storage provider name (e.g., “s3”, “gcs”, “azure”).
Source§fn get_object_with_options<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
options: &'life2 GetObjectOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn get_object_with_options<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
options: &'life2 GetObjectOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Gets an object with options. Read more
Source§fn put_object_with_options<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
key: &'life1 str,
data: &'life2 [u8],
options: &'life3 PutObjectOptions,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn put_object_with_options<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
key: &'life1 str,
data: &'life2 [u8],
options: &'life3 PutObjectOptions,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Puts an object with options. Read more
Source§fn list_objects_with_limit<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
max_results: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_objects_with_limit<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
max_results: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Lists objects with a given prefix and limit. Read more
Source§fn object_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn object_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool, CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Checks if an object exists. Read more
Source§fn copy_object<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from_key: &'life1 str,
to_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn copy_object<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from_key: &'life1 str,
to_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Copies an object within the same storage. Read more
Source§fn move_object<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from_key: &'life1 str,
to_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn move_object<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from_key: &'life1 str,
to_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Moves an object (copy then delete). Read more
Source§fn delete_objects<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_objects<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<(), CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Deletes multiple objects in batch. Read more
Source§fn list_objects_with_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<ObjectMetadata>, CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_objects_with_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<ObjectMetadata>, CloudError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Lists objects with metadata. Read more
Auto Trait Implementations§
impl Freeze for GcpCloudStorage
impl RefUnwindSafe for GcpCloudStorage
impl Send for GcpCloudStorage
impl Sync for GcpCloudStorage
impl Unpin for GcpCloudStorage
impl UnwindSafe for GcpCloudStorage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more