pub struct DeploymentResources {
pub cpu_cores_max: Option<f64>,
pub cpu_cores_min: Option<f64>,
pub memory_max: Option<String>,
pub memory_min: Option<String>,
}Expand description
CPU and memory, the only fields that can change while the pipeline runs.
JSON schema
{
"description": "CPU and memory, the only fields that can change while the pipeline runs.",
"type": "object",
"properties": {
"cpu_cores_max": {
"type": [
"number",
"null"
],
"format": "double"
},
"cpu_cores_min": {
"type": [
"number",
"null"
],
"format": "double"
},
"memory_max": {
"description": "The maximum memory, such as `\"16Gi\"`. `memory_mb_max`, a number of\nmegabytes, is a deprecated alias.",
"type": [
"string",
"null"
]
},
"memory_min": {
"description": "The minimum memory, such as `\"4Gi\"`. `memory_mb_min`, a number of\nmegabytes, is a deprecated alias.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}Fields§
§cpu_cores_max: Option<f64>§cpu_cores_min: Option<f64>§memory_max: Option<String>The maximum memory, such as "16Gi". memory_mb_max, a number of
megabytes, is a deprecated alias.
memory_min: Option<String>The minimum memory, such as "4Gi". memory_mb_min, a number of
megabytes, is a deprecated alias.
Implementations§
Source§impl DeploymentResources
impl DeploymentResources
pub fn builder() -> DeploymentResources
Trait Implementations§
Source§impl Clone for DeploymentResources
impl Clone for DeploymentResources
Source§impl Debug for DeploymentResources
impl Debug for DeploymentResources
Source§impl Default for DeploymentResources
impl Default for DeploymentResources
Source§impl<'de> Deserialize<'de> for DeploymentResources
impl<'de> Deserialize<'de> for DeploymentResources
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<&DeploymentResources> for DeploymentResources
impl From<&DeploymentResources> for DeploymentResources
Source§fn from(value: &DeploymentResources) -> Self
fn from(value: &DeploymentResources) -> Self
Converts to this type from the input type.
Source§impl From<DeploymentResources> for DeploymentResources
impl From<DeploymentResources> for DeploymentResources
Source§fn from(value: DeploymentResources) -> Self
fn from(value: DeploymentResources) -> Self
Converts to this type from the input type.
Source§impl Serialize for DeploymentResources
impl Serialize for DeploymentResources
Source§impl TryFrom<DeploymentResources> for DeploymentResources
impl TryFrom<DeploymentResources> for DeploymentResources
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DeploymentResources) -> Result<Self, ConversionError>
fn try_from(value: DeploymentResources) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DeploymentResources
impl RefUnwindSafe for DeploymentResources
impl Send for DeploymentResources
impl Sync for DeploymentResources
impl Unpin for DeploymentResources
impl UnsafeUnpin for DeploymentResources
impl UnwindSafe for DeploymentResources
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