pub struct GoogleCloudRunV2ResourceRequirements {
pub cpu_idle: Option<bool>,
pub limits: Option<HashMap<String, String>>,
pub startup_cpu_boost: Option<bool>,
}
Expand description
ResourceRequirements describes the compute resource requirements.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cpu_idle: Option<bool>
Determines whether CPU is only allocated during requests (true by default). However, if ResourceRequirements is set, the caller must explicitly set this field to true to preserve the default behavior.
limits: Option<HashMap<String, String>>
Only memory
and cpu
keys in the map are supported. Notes: * The only supported values for CPU are ‘1’, ‘2’, ‘4’, and ‘8’. Setting 4 CPU requires at least 2Gi of memory. For more information, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported ‘memory’ values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
startup_cpu_boost: Option<bool>
Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.
Trait Implementations§
Source§impl Clone for GoogleCloudRunV2ResourceRequirements
impl Clone for GoogleCloudRunV2ResourceRequirements
Source§fn clone(&self) -> GoogleCloudRunV2ResourceRequirements
fn clone(&self) -> GoogleCloudRunV2ResourceRequirements
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudRunV2ResourceRequirements
impl Default for GoogleCloudRunV2ResourceRequirements
Source§fn default() -> GoogleCloudRunV2ResourceRequirements
fn default() -> GoogleCloudRunV2ResourceRequirements
Source§impl<'de> Deserialize<'de> for GoogleCloudRunV2ResourceRequirements
impl<'de> Deserialize<'de> for GoogleCloudRunV2ResourceRequirements
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>,
impl Part for GoogleCloudRunV2ResourceRequirements
Auto Trait Implementations§
impl Freeze for GoogleCloudRunV2ResourceRequirements
impl RefUnwindSafe for GoogleCloudRunV2ResourceRequirements
impl Send for GoogleCloudRunV2ResourceRequirements
impl Sync for GoogleCloudRunV2ResourceRequirements
impl Unpin for GoogleCloudRunV2ResourceRequirements
impl UnwindSafe for GoogleCloudRunV2ResourceRequirements
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more