pub struct InstanceTypeClient { /* private fields */ }Expand description
Calls InstanceTypeService.
The catalog of instance types: every size the platform publishes, each saying whether an instance can be launched as it right now. Not scoped to an organisation or a project; no permission is needed.
Implementations§
Source§impl InstanceTypeClient
impl InstanceTypeClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of InstanceTypeService 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_instance_type(
&self,
request: GetInstanceTypeRequest,
) -> Result<InstanceType, Error>
pub async fn get_instance_type( &self, request: GetInstanceTypeRequest, ) -> Result<InstanceType, Error>
Returns an instance type.
Sourcepub async fn list_instance_types(
&self,
request: ListInstanceTypesRequest,
) -> Result<ListInstanceTypesResponse, Error>
pub async fn list_instance_types( &self, request: ListInstanceTypesRequest, ) -> Result<ListInstanceTypesResponse, Error>
Lists every instance type, including those no longer offered, which
instances launched as them still report: check available before
launching as one.
Trait Implementations§
Source§impl Clone for InstanceTypeClient
impl Clone for InstanceTypeClient
Auto Trait Implementations§
impl !RefUnwindSafe for InstanceTypeClient
impl !UnwindSafe for InstanceTypeClient
impl Forget for InstanceTypeClient
impl Freeze for InstanceTypeClient
impl Send for InstanceTypeClient
impl Sync for InstanceTypeClient
impl Unpin for InstanceTypeClient
impl UnsafeUnpin for InstanceTypeClient
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