pub struct CreateDeployBody {
pub clear_cache: String,
pub commit_id: Option<String>,
pub deploy_mode: Option<DeployMode>,
pub image_url: Option<String>,
}Expand description
CreateDeployBody
JSON schema
{
"type": "object",
"properties": {
"clearCache": {
"description": "If `clear`, Render clears the service's build cache
before deploying. This can be useful if you're experiencing issues with
your build.",
"default": "do_not_clear",
"type": "string"
},
"commitId": {
"description": "The SHA of a specific Git commit to deploy for a service. Defaults to the latest commit on the service's connected branch.\n\nNote that deploying a specific commit with this endpoint does not disable autodeploys for the service.\n\nYou can toggle autodeploys for your service with the [Update service](https://api-docs.render.com/reference/update-service) endpoint or in the Render Dashboard.\n\nNot supported for cron jobs.\n",
"type": "string"
},
"deployMode": {
"$ref": "#/components/schemas/DeployMode"
},
"imageUrl": {
"description": "The URL of the image to deploy for an image-backed
service.\n\nThe host, repository, and image name all must match the
currently configured image for the service.\n",
"type": "string"
}
}
}Fields§
§clear_cache: StringIf clear, Render clears the service’s build cache before
deploying. This can be useful if you’re experiencing issues with
your build.
commit_id: Option<String>The SHA of a specific Git commit to deploy for a service. Defaults to the latest commit on the service’s connected branch.
Note that deploying a specific commit with this endpoint does not disable autodeploys for the service.
You can toggle autodeploys for your service with the Update service endpoint or in the Render Dashboard.
Not supported for cron jobs.
deploy_mode: Option<DeployMode>§image_url: Option<String>The URL of the image to deploy for an image-backed service.
The host, repository, and image name all must match the currently configured image for the service.
Trait Implementations§
Source§impl Clone for CreateDeployBody
impl Clone for CreateDeployBody
Source§fn clone(&self) -> CreateDeployBody
fn clone(&self) -> CreateDeployBody
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 CreateDeployBody
impl Debug for CreateDeployBody
Source§impl Default for CreateDeployBody
impl Default for CreateDeployBody
Source§impl<'de> Deserialize<'de> for CreateDeployBody
impl<'de> Deserialize<'de> for CreateDeployBody
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
Auto Trait Implementations§
impl Freeze for CreateDeployBody
impl RefUnwindSafe for CreateDeployBody
impl Send for CreateDeployBody
impl Sync for CreateDeployBody
impl Unpin for CreateDeployBody
impl UnsafeUnpin for CreateDeployBody
impl UnwindSafe for CreateDeployBody
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