pub struct MockCloudStorageClient { /* private fields */ }Expand description
Mock cloud storage client for testing
Implementations§
Trait Implementations§
Source§impl CloudStorageClient for MockCloudStorageClient
impl CloudStorageClient for MockCloudStorageClient
Source§fn list_objects(&self, prefix: &str) -> UtilsResult<Vec<String>>
fn list_objects(&self, prefix: &str) -> UtilsResult<Vec<String>>
List objects with prefix
Source§fn get_metadata(&self, key: &str) -> UtilsResult<ObjectMetadata>
fn get_metadata(&self, key: &str) -> UtilsResult<ObjectMetadata>
Get object metadata
Source§fn upload_file(&self, key: &str, local_path: &str) -> UtilsResult<String>
fn upload_file(&self, key: &str, local_path: &str) -> UtilsResult<String>
Upload file from local path
Source§fn download_file(&self, key: &str, local_path: &str) -> UtilsResult<()>
fn download_file(&self, key: &str, local_path: &str) -> UtilsResult<()>
Download file to local path
Auto Trait Implementations§
impl Freeze for MockCloudStorageClient
impl RefUnwindSafe for MockCloudStorageClient
impl Send for MockCloudStorageClient
impl Sync for MockCloudStorageClient
impl Unpin for MockCloudStorageClient
impl UnwindSafe for MockCloudStorageClient
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more