pub struct NodeShape {
pub cpu: f64,
pub memory_bytes: u64,
pub gpu: u32,
pub gpu_vendor: Option<String>,
pub labels: BTreeMap<String, String>,
pub zone: Option<String>,
pub capacity_type: CapacityType,
}Expand description
Desired shape of a node to provision.
Construct with NodeShape::new and refine the optional fields directly.
Fields§
§cpu: f64Requested vCPU count (fractional allowed, e.g. for burstable shapes).
memory_bytes: u64Requested memory in bytes.
gpu: u32Requested GPU count (0 if none).
gpu_vendor: Option<String>Optional GPU vendor hint (e.g. "nvidia", "amd").
labels: BTreeMap<String, String>Arbitrary scheduling labels to attach to the node.
zone: Option<String>Optional availability zone / placement hint.
capacity_type: CapacityTypeDesired billing capacity type.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeShape
impl<'de> Deserialize<'de> for NodeShape
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
Auto Trait Implementations§
impl Freeze for NodeShape
impl RefUnwindSafe for NodeShape
impl Send for NodeShape
impl Sync for NodeShape
impl Unpin for NodeShape
impl UnsafeUnpin for NodeShape
impl UnwindSafe for NodeShape
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