pub struct BackgroundWorkerDetails {Show 14 fields
pub autoscaling: Option<BackgroundWorkerDetailsAutoscaling>,
pub build_plan: Option<BuildPlan>,
pub disk: Option<BackgroundWorkerDetailsDisk>,
pub env: Option<ServiceEnv>,
pub env_specific_details: Option<EnvSpecificDetails>,
pub max_shutdown_delay_seconds: Option<MaxShutdownDelaySeconds>,
pub num_instances: Option<i64>,
pub parent_server: Option<Resource>,
pub plan: Option<Plan>,
pub previews: Option<Previews>,
pub pull_request_previews_enabled: Option<PullRequestPreviewsEnabled>,
pub region: Option<Region>,
pub runtime: Option<ServiceRuntime>,
pub ssh_address: Option<SshAddress>,
}Expand description
BackgroundWorkerDetails
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"
}
}
},
"buildPlan": {
"$ref": "#/components/schemas/buildPlan"
},
"disk": {
"type": "object",
"properties": {
"id": {
"examples": [
"dsk-cph1rs3idesc73a2b2mg"
],
"type": "string",
"pattern": "^dsk-[0-9a-z]{20}$"
},
"mountPath": {
"type": "string"
},
"name": {
"type": "string"
},
"sizeGB": {
"type": "integer"
}
}
},
"env": {
"$ref": "#/components/schemas/serviceEnv"
},
"envSpecificDetails": {
"$ref": "#/components/schemas/envSpecificDetails"
},
"maxShutdownDelaySeconds": {
"$ref": "#/components/schemas/maxShutdownDelaySeconds"
},
"numInstances": {
"description": "For a *manually* scaled service, this is the number
of instances the service is scaled to. DOES NOT indicate the number of
running instances for an *autoscaled* service.",
"type": "integer"
},
"parentServer": {
"$ref": "#/components/schemas/resource"
},
"plan": {
"$ref": "#/components/schemas/plan"
},
"previews": {
"$ref": "#/components/schemas/previews"
},
"pullRequestPreviewsEnabled": {
"$ref": "#/components/schemas/pullRequestPreviewsEnabled"
},
"region": {
"$ref": "#/components/schemas/region"
},
"runtime": {
"$ref": "#/components/schemas/serviceRuntime"
},
"sshAddress": {
"$ref": "#/components/schemas/sshAddress"
}
}
}Fields§
§autoscaling: Option<BackgroundWorkerDetailsAutoscaling>§build_plan: Option<BuildPlan>§disk: Option<BackgroundWorkerDetailsDisk>§env: Option<ServiceEnv>§env_specific_details: Option<EnvSpecificDetails>§max_shutdown_delay_seconds: Option<MaxShutdownDelaySeconds>§num_instances: Option<i64>For a manually scaled service, this is the number of instances the service is scaled to. DOES NOT indicate the number of running instances for an autoscaled service.
parent_server: Option<Resource>§plan: Option<Plan>§previews: Option<Previews>§pull_request_previews_enabled: Option<PullRequestPreviewsEnabled>§region: Option<Region>§runtime: Option<ServiceRuntime>§ssh_address: Option<SshAddress>Trait Implementations§
Source§impl Clone for BackgroundWorkerDetails
impl Clone for BackgroundWorkerDetails
Source§fn clone(&self) -> BackgroundWorkerDetails
fn clone(&self) -> BackgroundWorkerDetails
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 BackgroundWorkerDetails
impl Debug for BackgroundWorkerDetails
Source§impl Default for BackgroundWorkerDetails
impl Default for BackgroundWorkerDetails
Source§impl<'de> Deserialize<'de> for BackgroundWorkerDetails
impl<'de> Deserialize<'de> for BackgroundWorkerDetails
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<BackgroundWorkerDetails> for ServiceServiceDetails
impl From<BackgroundWorkerDetails> for ServiceServiceDetails
Source§fn from(value: BackgroundWorkerDetails) -> Self
fn from(value: BackgroundWorkerDetails) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BackgroundWorkerDetails
impl RefUnwindSafe for BackgroundWorkerDetails
impl Send for BackgroundWorkerDetails
impl Sync for BackgroundWorkerDetails
impl Unpin for BackgroundWorkerDetails
impl UnsafeUnpin for BackgroundWorkerDetails
impl UnwindSafe for BackgroundWorkerDetails
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