pub struct ComputeMachineOption {
pub machine: String,
pub series: String,
pub category: InstanceFamily,
pub label: String,
pub profile: MachineProfile,
pub nested_virtualization: bool,
pub local_storage: Option<u64>,
pub available: bool,
pub unavailable_reasons: Vec<MachineUnavailableReason>,
pub recommended: bool,
}Expand description
One concrete provider machine option.
Fields§
§machine: StringProvider machine name.
series: StringProvider series the machine belongs to, such as m8i or n2-standard.
category: InstanceFamilyCategory the machine’s series belongs to.
label: StringHow the series is shown to people choosing a machine.
profile: MachineProfileMachine hardware profile.
nested_virtualization: boolWhether the machine exposes nested virtualization to guest VMs.
local_storage: Option<u64>Local instance disk the provider reports for the machine, in bytes. Absent when the machine has none and its storage is a provider disk.
available: boolWhether the machine can run this pool.
Why the machine cannot run this pool. Empty when available is true.
recommended: boolWhether this machine is the planner’s default recommendation.
Trait Implementations§
Source§impl Clone for ComputeMachineOption
impl Clone for ComputeMachineOption
Source§impl Debug for ComputeMachineOption
impl Debug for ComputeMachineOption
Source§impl<'de> Deserialize<'de> for ComputeMachineOption
impl<'de> Deserialize<'de> for ComputeMachineOption
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 ComputeMachineOption
impl PartialEq for ComputeMachineOption
Source§impl Serialize for ComputeMachineOption
impl Serialize for ComputeMachineOption
impl StructuralPartialEq for ComputeMachineOption
Auto Trait Implementations§
impl Freeze for ComputeMachineOption
impl RefUnwindSafe for ComputeMachineOption
impl Send for ComputeMachineOption
impl Sync for ComputeMachineOption
impl Unpin for ComputeMachineOption
impl UnsafeUnpin for ComputeMachineOption
impl UnwindSafe for ComputeMachineOption
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