pub struct StoragesService { /* private fields */ }Expand description
Operations on the Storages resource.
Implementations§
Source§impl StoragesService
impl StoragesService
pub async fn create( &self, req: &CreateStorageRequest, ) -> Result<IdResponse, Error>
pub async fn list( &self, opts: Option<&StorageListOptions>, ) -> Result<PaginatedResponse<Storage>, Error>
pub async fn get(&self, storage_id: i64) -> Result<Storage, Error>
pub async fn edit( &self, storage_id: i64, req: &EditStorageRequest, ) -> Result<IdResponse, Error>
pub async fn deactivate(&self, storage_id: i64) -> Result<IdResponse, Error>
pub async fn test_bucket( &self, req: &TestStorageBucketRequest, ) -> Result<TestBucketStorageResponse, Error>
pub async fn test_storage_bucket( &self, storage_id: i64, ) -> Result<TestStorageBucketStorageResponse, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for StoragesService
impl !UnwindSafe for StoragesService
impl Freeze for StoragesService
impl Send for StoragesService
impl Sync for StoragesService
impl Unpin for StoragesService
impl UnsafeUnpin for StoragesService
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