pub struct MachineProfile {
pub cpu: String,
pub memory_bytes: u64,
pub ephemeral_storage_bytes: u64,
pub gpu: Option<GpuSpec>,
}Expand description
Machine resource profile for a capacity group.
Represents the hardware specifications for machines in a capacity group. These are hardware totals (what the instance type advertises), not allocatable capacity. Horizon’s scheduler internally subtracts system reserves for planning.
Fields§
§cpu: StringCPU cores per machine (hardware total) - stored as string to preserve precision (e.g., “8.0”, “4.5”)
memory_bytes: u64Memory in bytes (hardware total)
ephemeral_storage_bytes: u64Ephemeral storage in bytes (hardware total)
gpu: Option<GpuSpec>GPU specification (optional)
Trait Implementations§
Source§impl Clone for MachineProfile
impl Clone for MachineProfile
Source§fn clone(&self) -> MachineProfile
fn clone(&self) -> MachineProfile
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 MachineProfile
impl Debug for MachineProfile
Source§impl<'de> Deserialize<'de> for MachineProfile
impl<'de> Deserialize<'de> for MachineProfile
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 MachineProfile
impl PartialEq for MachineProfile
Source§impl Serialize for MachineProfile
impl Serialize for MachineProfile
impl StructuralPartialEq for MachineProfile
Auto Trait Implementations§
impl Freeze for MachineProfile
impl RefUnwindSafe for MachineProfile
impl Send for MachineProfile
impl Sync for MachineProfile
impl Unpin for MachineProfile
impl UnsafeUnpin for MachineProfile
impl UnwindSafe for MachineProfile
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