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 fn with_options(&self, options: CallOptions) -> Self
pub fn with_options(&self, options: CallOptions) -> Self
The same client, whose calls are sent as options says instead of as the Client’s settings do, such as a mutation that must not be sent twice: .with_options(CallOptions::new().max_attempts(1)). See CallOptions.
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 Forget for StorageClassClient
impl Freeze for StorageClassClientwhere
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for StorageClassClient
impl Send for StorageClassClient
impl Sync for StorageClassClient
impl Unpin for StorageClassClient
impl UnsafeUnpin for StorageClassClientwhere
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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