pub struct ContainerResourcePlan {
pub container_id: String,
pub choices: ContainerResourceChoices,
pub cpu: ResourceSpec,
pub memory: ResourceSpec,
pub volume_size_gib: Option<u32>,
pub minimum_volume_size_gib: Option<u32>,
pub maximum_volume_size_gib: Option<u32>,
}Expand description
Deployment-time resource controls and effective allocation for one container.
Fields§
§container_id: StringStable container resource ID.
choices: ContainerResourceChoicesAllowed allocations declared in the release.
cpu: ResourceSpecEffective per-replica CPU reservation and limit.
memory: ResourceSpecEffective per-replica memory reservation and limit.
volume_size_gib: Option<u32>Effective persistent capacity per replica, in GiB.
minimum_volume_size_gib: Option<u32>Installed capacity, or the provider minimum for a new volume.
maximum_volume_size_gib: Option<u32>Maximum supported capacity for this provider, in GiB.
Trait Implementations§
Source§impl Clone for ContainerResourcePlan
impl Clone for ContainerResourcePlan
Source§impl Debug for ContainerResourcePlan
impl Debug for ContainerResourcePlan
Source§impl<'de> Deserialize<'de> for ContainerResourcePlan
impl<'de> Deserialize<'de> for ContainerResourcePlan
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 PartialEq for ContainerResourcePlan
impl PartialEq for ContainerResourcePlan
Source§impl Serialize for ContainerResourcePlan
impl Serialize for ContainerResourcePlan
impl StructuralPartialEq for ContainerResourcePlan
Auto Trait Implementations§
impl Forget for ContainerResourcePlan
impl Freeze for ContainerResourcePlan
impl RefUnwindSafe for ContainerResourcePlan
impl Send for ContainerResourcePlan
impl Sync for ContainerResourcePlan
impl Unpin for ContainerResourcePlan
impl UnsafeUnpin for ContainerResourcePlan
impl UnwindSafe for ContainerResourcePlan
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