pub struct ContainerResourceSelection {
pub cpu: Option<f64>,
pub memory: Option<String>,
pub volume_size_gib: Option<i32>,
}Expand description
Deployment-time resource allocation for a container. Omitted fields use release defaults.
JSON schema
{
"description": "Deployment-time resource allocation for a container. Omitted fields use release defaults.",
"type": "object",
"properties": {
"cpu": {
"description": "CPU allocation in vCPUs.",
"type": [
"number",
"null"
],
"format": "double"
},
"memory": {
"description": "Memory allocation, using binary units such as Mi or Gi.",
"type": [
"string",
"null"
]
},
"volumeSizeGib": {
"description": "Persistent volume capacity per replica, in whole GiB. Omitted values\nuse the release default. Existing volumes can only grow.",
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
}
},
"additionalProperties": false
}Fields§
§cpu: Option<f64>CPU allocation in vCPUs.
memory: Option<String>Memory allocation, using binary units such as Mi or Gi.
volume_size_gib: Option<i32>Persistent volume capacity per replica, in whole GiB. Omitted values use the release default. Existing volumes can only grow.
Implementations§
Source§impl ContainerResourceSelection
impl ContainerResourceSelection
pub fn builder() -> ContainerResourceSelection
Trait Implementations§
Source§impl Clone for ContainerResourceSelection
impl Clone for ContainerResourceSelection
Source§impl Debug for ContainerResourceSelection
impl Debug for ContainerResourceSelection
Source§impl Default for ContainerResourceSelection
impl Default for ContainerResourceSelection
Source§impl<'de> Deserialize<'de> for ContainerResourceSelection
impl<'de> Deserialize<'de> for ContainerResourceSelection
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<&ContainerResourceSelection> for ContainerResourceSelection
impl From<&ContainerResourceSelection> for ContainerResourceSelection
Source§fn from(value: &ContainerResourceSelection) -> Self
fn from(value: &ContainerResourceSelection) -> Self
Converts to this type from the input type.
Source§impl From<ContainerResourceSelection> for ContainerResourceSelection
impl From<ContainerResourceSelection> for ContainerResourceSelection
Source§fn from(value: ContainerResourceSelection) -> Self
fn from(value: ContainerResourceSelection) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ContainerResourceSelection> for ContainerResourceSelection
impl TryFrom<ContainerResourceSelection> for ContainerResourceSelection
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ContainerResourceSelection) -> Result<Self, ConversionError>
fn try_from(value: ContainerResourceSelection) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ContainerResourceSelection
impl RefUnwindSafe for ContainerResourceSelection
impl Send for ContainerResourceSelection
impl Sync for ContainerResourceSelection
impl Unpin for ContainerResourceSelection
impl UnsafeUnpin for ContainerResourceSelection
impl UnwindSafe for ContainerResourceSelection
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