pub struct PrivateServiceDetailsPost {
pub autoscaling: Option<PrivateServiceDetailsPostAutoscaling>,
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
PrivateServiceDetailsPost
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<PrivateServiceDetailsPostAutoscaling>§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 PrivateServiceDetailsPost
impl Clone for PrivateServiceDetailsPost
Source§fn clone(&self) -> PrivateServiceDetailsPost
fn clone(&self) -> PrivateServiceDetailsPost
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 PrivateServiceDetailsPost
impl Debug for PrivateServiceDetailsPost
Source§impl Default for PrivateServiceDetailsPost
impl Default for PrivateServiceDetailsPost
Source§impl<'de> Deserialize<'de> for PrivateServiceDetailsPost
impl<'de> Deserialize<'de> for PrivateServiceDetailsPost
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<PrivateServiceDetailsPost> for ServicePostServiceDetails
impl From<PrivateServiceDetailsPost> for ServicePostServiceDetails
Source§fn from(value: PrivateServiceDetailsPost) -> Self
fn from(value: PrivateServiceDetailsPost) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivateServiceDetailsPost
impl RefUnwindSafe for PrivateServiceDetailsPost
impl Send for PrivateServiceDetailsPost
impl Sync for PrivateServiceDetailsPost
impl Unpin for PrivateServiceDetailsPost
impl UnsafeUnpin for PrivateServiceDetailsPost
impl UnwindSafe for PrivateServiceDetailsPost
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