pub struct InstanceType {
pub name: String,
pub display_name: String,
pub kind: String,
pub cpu_allocation_mode: String,
pub vcpu: i32,
pub memory_mib: i32,
pub storage_bandwidth_mbit: i32,
pub storage_burst_bandwidth_mbit: i32,
pub available: bool,
}Expand description
A size an instance is launched as.
Fields§
§name: StringThe type’s resource name, instanceTypes/gp1.core.2.
display_name: StringThe name the console shows.
kind: StringThe hardware kind, such as gp1.
cpu_allocation_mode: StringHow its vCPUs are allocated, such as core: dedicated and guaranteed.
vcpu: i32The vCPUs an instance of the type has.
memory_mib: i32The memory an instance of the type has, in MiB.
storage_bandwidth_mbit: i32The most an instance of the type reads and writes across all its volumes together, in megabits per second; 0 when it isn’t limited.
storage_burst_bandwidth_mbit: i32The rate an instance of the type can burst to above
storage_bandwidth_mbit, in megabits per second, for 60 seconds of
traffic at that rate, which staying under the limit refills; 0 when it
can’t burst.
available: boolWhether an instance can be launched as, or changed to, the type now. A type listed but not available is no longer offered; instances already of the type keep running.
Trait Implementations§
Source§impl Clone for InstanceType
impl Clone for InstanceType
Source§impl Debug for InstanceType
impl Debug for InstanceType
Source§impl Default for InstanceType
impl Default for InstanceType
Source§impl<'de> Deserialize<'de> for InstanceType
impl<'de> Deserialize<'de> for InstanceType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
impl Eq for InstanceType
Source§impl Hash for InstanceType
impl Hash for InstanceType
Source§impl Message for InstanceType
impl Message for InstanceType
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for InstanceType
impl PartialEq for InstanceType
Source§impl Serialize for InstanceType
impl Serialize for InstanceType
impl StructuralPartialEq for InstanceType
Auto Trait Implementations§
impl Freeze for InstanceType
impl RefUnwindSafe for InstanceType
impl Send for InstanceType
impl Sync for InstanceType
impl Unpin for InstanceType
impl UnsafeUnpin for InstanceType
impl UnwindSafe for InstanceType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.