pub struct ShapeOcpuOptions {
pub min: Option<i64>,
pub max: Option<i64>,
pub max_per_numa_node: Option<i64>,
}Expand description
For a flexible shape, the number of OCPUs available for instances that use this shape.
If this field is null, then this shape has a fixed number of OCPUs equal to {@code ocpus}.
Fields§
§min: Option<i64>The minimum number of OCPUs. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
max: Option<i64>The maximum number of OCPUs. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
max_per_numa_node: Option<i64>The maximum number of cores available per NUMA node. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
Implementations§
Source§impl ShapeOcpuOptions
impl ShapeOcpuOptions
Sourcepub fn set_max_per_numa_node(self, value: Option<i64>) -> Self
pub fn set_max_per_numa_node(self, value: Option<i64>) -> Self
Set max_per_numa_node
Sourcepub fn with_max_per_numa_node(self, value: i64) -> Self
pub fn with_max_per_numa_node(self, value: i64) -> Self
Set max_per_numa_node (unwraps Option)
Trait Implementations§
Source§impl Clone for ShapeOcpuOptions
impl Clone for ShapeOcpuOptions
Source§fn clone(&self) -> ShapeOcpuOptions
fn clone(&self) -> ShapeOcpuOptions
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 ShapeOcpuOptions
impl Debug for ShapeOcpuOptions
Source§impl Default for ShapeOcpuOptions
impl Default for ShapeOcpuOptions
Source§impl<'de> Deserialize<'de> for ShapeOcpuOptions
impl<'de> Deserialize<'de> for ShapeOcpuOptions
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 ShapeOcpuOptions
impl RefUnwindSafe for ShapeOcpuOptions
impl Send for ShapeOcpuOptions
impl Sync for ShapeOcpuOptions
impl Unpin for ShapeOcpuOptions
impl UnsafeUnpin for ShapeOcpuOptions
impl UnwindSafe for ShapeOcpuOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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