pub struct WebServiceDetailsPost {Show 16 fields
pub autoscaling: Option<WebServiceDetailsPostAutoscaling>,
pub disk: Option<ServiceDisk>,
pub env: Option<ServiceEnv>,
pub env_specific_details: Option<EnvSpecificDetailsPost>,
pub health_check_path: Option<String>,
pub ip_allow_list: Vec<CidrBlockAndDescription>,
pub maintenance_mode: Option<MaintenanceMode>,
pub max_shutdown_delay_seconds: Option<MaxShutdownDelaySeconds>,
pub num_instances: Option<NonZeroU64>,
pub plan: Option<Plan>,
pub pre_deploy_command: Option<String>,
pub previews: Option<Previews>,
pub pull_request_previews_enabled: Option<PullRequestPreviewsEnabled>,
pub region: Option<Region>,
pub render_subdomain_policy: Option<RenderSubdomainPolicy>,
pub runtime: Option<ServiceRuntime>,
}Expand description
WebServiceDetailsPost
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"
},
"healthCheckPath": {
"type": "string"
},
"ipAllowList": {
"type": "array",
"items": {
"$ref": "#/components/schemas/cidrBlockAndDescription"
}
},
"maintenanceMode": {
"$ref": "#/components/schemas/maintenanceMode"
},
"maxShutdownDelaySeconds": {
"$ref": "#/components/schemas/maxShutdownDelaySeconds"
},
"numInstances": {
"description": "Defaults to 1",
"type": "integer",
"minimum": 1.0
},
"plan": {
"$ref": "#/components/schemas/plan"
},
"preDeployCommand": {
"type": "string"
},
"previews": {
"$ref": "#/components/schemas/previews"
},
"pullRequestPreviewsEnabled": {
"$ref": "#/components/schemas/pullRequestPreviewsEnabled"
},
"region": {
"$ref": "#/components/schemas/region"
},
"renderSubdomainPolicy": {
"$ref": "#/components/schemas/renderSubdomainPolicy"
},
"runtime": {
"$ref": "#/components/schemas/serviceRuntime"
}
}
}Fields§
§autoscaling: Option<WebServiceDetailsPostAutoscaling>§disk: Option<ServiceDisk>§env: Option<ServiceEnv>§env_specific_details: Option<EnvSpecificDetailsPost>§health_check_path: Option<String>§ip_allow_list: Vec<CidrBlockAndDescription>§maintenance_mode: Option<MaintenanceMode>§max_shutdown_delay_seconds: Option<MaxShutdownDelaySeconds>§num_instances: Option<NonZeroU64>Defaults to 1
plan: Option<Plan>§pre_deploy_command: Option<String>§previews: Option<Previews>§pull_request_previews_enabled: Option<PullRequestPreviewsEnabled>§region: Option<Region>§render_subdomain_policy: Option<RenderSubdomainPolicy>§runtime: Option<ServiceRuntime>Trait Implementations§
Source§impl Clone for WebServiceDetailsPost
impl Clone for WebServiceDetailsPost
Source§fn clone(&self) -> WebServiceDetailsPost
fn clone(&self) -> WebServiceDetailsPost
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 WebServiceDetailsPost
impl Debug for WebServiceDetailsPost
Source§impl Default for WebServiceDetailsPost
impl Default for WebServiceDetailsPost
Source§impl<'de> Deserialize<'de> for WebServiceDetailsPost
impl<'de> Deserialize<'de> for WebServiceDetailsPost
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<WebServiceDetailsPost> for ServicePostServiceDetails
impl From<WebServiceDetailsPost> for ServicePostServiceDetails
Source§fn from(value: WebServiceDetailsPost) -> Self
fn from(value: WebServiceDetailsPost) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebServiceDetailsPost
impl RefUnwindSafe for WebServiceDetailsPost
impl Send for WebServiceDetailsPost
impl Sync for WebServiceDetailsPost
impl Unpin for WebServiceDetailsPost
impl UnsafeUnpin for WebServiceDetailsPost
impl UnwindSafe for WebServiceDetailsPost
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