pub enum ComputePoolSelection {
Fixed {
machine: Option<String>,
machines: i32,
},
Autoscale {
machine: Option<String>,
max: i32,
min: i32,
},
}Expand description
User-selected deployment settings for one compute pool.
JSON schema
{
"description": "User-selected deployment settings for one compute pool.",
"oneOf": [
{
"description": "Fixed number of machines.",
"type": "object",
"required": [
"machines",
"mode"
],
"properties": {
"machine": {
"description": "Provider machine type selected for this deployment.",
"type": [
"string",
"null"
]
},
"machines": {
"description": "Number of machines to run.",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"mode": {
"type": "string",
"enum": [
"fixed"
]
}
}
},
{
"description": "Autoscaling machine pool.",
"type": "object",
"required": [
"max",
"min",
"mode"
],
"properties": {
"machine": {
"description": "Provider machine type selected for this deployment.",
"type": [
"string",
"null"
]
},
"max": {
"description": "Maximum machine count.",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"min": {
"description": "Minimum machine count.",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"mode": {
"type": "string",
"enum": [
"autoscale"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for ComputePoolSelection
impl Clone for ComputePoolSelection
Source§fn clone(&self) -> ComputePoolSelection
fn clone(&self) -> ComputePoolSelection
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 Debug for ComputePoolSelection
impl Debug for ComputePoolSelection
Source§impl<'de> Deserialize<'de> for ComputePoolSelection
impl<'de> Deserialize<'de> for ComputePoolSelection
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<&ComputePoolSelection> for ComputePoolSelection
impl From<&ComputePoolSelection> for ComputePoolSelection
Source§fn from(value: &ComputePoolSelection) -> Self
fn from(value: &ComputePoolSelection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComputePoolSelection
impl RefUnwindSafe for ComputePoolSelection
impl Send for ComputePoolSelection
impl Sync for ComputePoolSelection
impl Unpin for ComputePoolSelection
impl UnsafeUnpin for ComputePoolSelection
impl UnwindSafe for ComputePoolSelection
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