pub struct BackgroundWorkerDetailsPost {
pub autoscaling: Option<BackgroundWorkerDetailsPostAutoscaling>,
pub disk: Option<ServiceDisk>,
pub env: Option<ServiceEnv>,
pub env_specific_details: Option<EnvSpecificDetailsPost>,
pub max_shutdown_delay_seconds: Option<MaxShutdownDelaySeconds>,
pub num_instances: NonZeroU64,
pub plan: Option<PaidPlan>,
pub pre_deploy_command: Option<String>,
pub previews: Option<Previews>,
pub pull_request_previews_enabled: Option<PullRequestPreviewsEnabled>,
pub region: Option<Region>,
pub runtime: Option<ServiceRuntime>,
}Expand description
BackgroundWorkerDetailsPost
JSON schema
{
"type": "object",
"properties": {
"autoscaling": {
"type": "object",
"properties": {
"criteria": {
"type": "object",
"properties": {
"cpu": {
"type": "object",
"properties": {
"enabled": {
"default": false,
"type": "boolean"
},
"percentage": {
"description": "Determines when your service will be
scaled. If the average resource utilization is significantly above/below
the target, we will increase/decrease the number of instances.\n",
"type": "integer"
}
}
},
"memory": {
"type": "object",
"properties": {
"enabled": {
"default": false,
"type": "boolean"
},
"percentage": {
"description": "Determines when your service will be
scaled. If the average resource utilization is significantly above/below
the target, we will increase/decrease the number of instances.\n",
"type": "integer"
}
}
}
}
},
"enabled": {
"default": false,
"type": "boolean"
},
"max": {
"description": "The maximum number of instances for the
service",
"type": "integer"
},
"min": {
"description": "The minimum number of instances for the
service",
"type": "integer"
}
}
},
"disk": {
"$ref": "#/components/schemas/serviceDisk"
},
"env": {
"$ref": "#/components/schemas/serviceEnv"
},
"envSpecificDetails": {
"$ref": "#/components/schemas/envSpecificDetailsPOST"
},
"maxShutdownDelaySeconds": {
"$ref": "#/components/schemas/maxShutdownDelaySeconds"
},
"numInstances": {
"description": "Defaults to 1",
"default": 1,
"type": "integer",
"minimum": 1.0
},
"plan": {
"$ref": "#/components/schemas/paidPlan"
},
"preDeployCommand": {
"type": "string"
},
"previews": {
"$ref": "#/components/schemas/previews"
},
"pullRequestPreviewsEnabled": {
"$ref": "#/components/schemas/pullRequestPreviewsEnabled"
},
"region": {
"$ref": "#/components/schemas/region"
},
"runtime": {
"$ref": "#/components/schemas/serviceRuntime"
}
}
}Fields§
§autoscaling: Option<BackgroundWorkerDetailsPostAutoscaling>§disk: Option<ServiceDisk>§env: Option<ServiceEnv>§env_specific_details: Option<EnvSpecificDetailsPost>§max_shutdown_delay_seconds: Option<MaxShutdownDelaySeconds>§num_instances: NonZeroU64Defaults to 1
plan: Option<PaidPlan>§pre_deploy_command: Option<String>§previews: Option<Previews>§pull_request_previews_enabled: Option<PullRequestPreviewsEnabled>§region: Option<Region>§runtime: Option<ServiceRuntime>Trait Implementations§
Source§impl Clone for BackgroundWorkerDetailsPost
impl Clone for BackgroundWorkerDetailsPost
Source§fn clone(&self) -> BackgroundWorkerDetailsPost
fn clone(&self) -> BackgroundWorkerDetailsPost
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 BackgroundWorkerDetailsPost
impl Debug for BackgroundWorkerDetailsPost
Source§impl<'de> Deserialize<'de> for BackgroundWorkerDetailsPost
impl<'de> Deserialize<'de> for BackgroundWorkerDetailsPost
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<BackgroundWorkerDetailsPost> for ServicePostServiceDetails
impl From<BackgroundWorkerDetailsPost> for ServicePostServiceDetails
Source§fn from(value: BackgroundWorkerDetailsPost) -> Self
fn from(value: BackgroundWorkerDetailsPost) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BackgroundWorkerDetailsPost
impl RefUnwindSafe for BackgroundWorkerDetailsPost
impl Send for BackgroundWorkerDetailsPost
impl Sync for BackgroundWorkerDetailsPost
impl Unpin for BackgroundWorkerDetailsPost
impl UnsafeUnpin for BackgroundWorkerDetailsPost
impl UnwindSafe for BackgroundWorkerDetailsPost
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