pub struct InstanceType {
pub id: Option<String>,
pub size: Option<Size>,
pub family: Option<Family>,
pub cpus: Option<i64>,
pub gpus: Option<i64>,
pub authorized: Option<bool>,
pub memory: Option<i64>,
pub zones: Option<Vec<ZoneName>>,
}
Expand description
InstanceType : Compute instance type
Fields§
§id: Option<String>
Instance type ID
size: Option<Size>
Instance type size
family: Option<Family>
Instance type family
cpus: Option<i64>
CPU count
gpus: Option<i64>
GPU count
Requires authorization or publicly available
memory: Option<i64>
Available memory
zones: Option<Vec<ZoneName>>
Instance Type available zones
Implementations§
Source§impl InstanceType
impl InstanceType
Sourcepub fn new() -> InstanceType
pub fn new() -> InstanceType
Compute instance type
Trait Implementations§
Source§impl Clone for InstanceType
impl Clone for InstanceType
Source§fn clone(&self) -> InstanceType
fn clone(&self) -> InstanceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InstanceType
impl Debug for InstanceType
Source§impl Default for InstanceType
impl Default for InstanceType
Source§fn default() -> InstanceType
fn default() -> InstanceType
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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 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
Mutably borrows from an owned value. Read more