pub struct StorageClassClient { /* private fields */ }Expand description
Calls StorageClassService.
The catalog of storage classes: every tier the platform publishes, each saying whether it can be selected right now. Not scoped to an organisation or a project; no permission is needed.
Implementations§
Source§impl StorageClassClient
impl StorageClassClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of StorageClassService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub async fn get_storage_class(
&self,
request: GetStorageClassRequest,
) -> Result<StorageClass, Error>
pub async fn get_storage_class( &self, request: GetStorageClassRequest, ) -> Result<StorageClass, Error>
Returns a storage class.
Sourcepub async fn list_storage_classes(
&self,
request: ListStorageClassesRequest,
) -> Result<ListStorageClassesResponse, Error>
pub async fn list_storage_classes( &self, request: ListStorageClassesRequest, ) -> Result<ListStorageClassesResponse, Error>
Lists every storage class, including those not yet on sale: check
available before selecting one.
Trait Implementations§
Source§impl Clone for StorageClassClient
impl Clone for StorageClassClient
Auto Trait Implementations§
impl !RefUnwindSafe for StorageClassClient
impl !UnwindSafe for StorageClassClient
impl Freeze for StorageClassClient
impl Send for StorageClassClient
impl Sync for StorageClassClient
impl Unpin for StorageClassClient
impl UnsafeUnpin for StorageClassClient
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