pub struct ComputeCapacityRecommendation {
pub desired_machines: i32,
pub reason: Option<String>,
pub unschedulable_replicas: Option<i32>,
pub utilization: Option<MetricSample>,
}Expand description
ComputeCapacityRecommendation
JSON schema
{
"type": "object",
"required": [
"desiredMachines"
],
"properties": {
"desiredMachines": {
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"reason": {
"type": [
"string",
"null"
]
},
"unschedulableReplicas": {
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
},
"utilization": {
"$ref": "#/components/schemas/MetricSample"
}
}
}Fields§
§desired_machines: i32§reason: Option<String>§unschedulable_replicas: Option<i32>§utilization: Option<MetricSample>Implementations§
Trait Implementations§
Source§impl Clone for ComputeCapacityRecommendation
impl Clone for ComputeCapacityRecommendation
Source§fn clone(&self) -> ComputeCapacityRecommendation
fn clone(&self) -> ComputeCapacityRecommendation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ComputeCapacityRecommendation
impl<'de> Deserialize<'de> for ComputeCapacityRecommendation
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 From<&ComputeCapacityRecommendation> for ComputeCapacityRecommendation
impl From<&ComputeCapacityRecommendation> for ComputeCapacityRecommendation
Source§fn from(value: &ComputeCapacityRecommendation) -> Self
fn from(value: &ComputeCapacityRecommendation) -> Self
Converts to this type from the input type.
Source§impl From<ComputeCapacityRecommendation> for ComputeCapacityRecommendation
impl From<ComputeCapacityRecommendation> for ComputeCapacityRecommendation
Source§fn from(value: ComputeCapacityRecommendation) -> Self
fn from(value: ComputeCapacityRecommendation) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ComputeCapacityRecommendation> for ComputeCapacityRecommendation
impl TryFrom<ComputeCapacityRecommendation> for ComputeCapacityRecommendation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ComputeCapacityRecommendation,
) -> Result<Self, ConversionError>
fn try_from( value: ComputeCapacityRecommendation, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComputeCapacityRecommendation
impl RefUnwindSafe for ComputeCapacityRecommendation
impl Send for ComputeCapacityRecommendation
impl Sync for ComputeCapacityRecommendation
impl Unpin for ComputeCapacityRecommendation
impl UnsafeUnpin for ComputeCapacityRecommendation
impl UnwindSafe for ComputeCapacityRecommendation
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