pub struct InstanceType {
pub id: Option<Uuid>,
pub size: Option<Size>,
pub family: Option<Family>,
pub cpus: Option<u64>,
pub gpus: Option<u64>,
pub authorized: Option<bool>,
pub memory: Option<u64>,
pub zones: Option<Vec<ZoneName>>,
}Fields§
§id: Option<Uuid>Instance type ID
size: Option<Size>Instance type size
family: Option<Family>Instance type family
cpus: Option<u64>CPU count
gpus: Option<u64>GPU count
Requires authorization or publicly available
memory: Option<u64>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§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>,
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 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
Mutably borrows from an owned value. Read more