pub struct ReposCreateDeploymentStatusRequest {
pub state: State,
pub target_url: Option<String>,
pub log_url: Option<String>,
pub description: Option<String>,
pub environment: Option<String>,
pub environment_url: Option<String>,
pub auto_inactive: Option<bool>,
}
Fields§
§state: State
The state of the status. When you set a transient deployment to inactive
, the deployment will be shown as destroyed
in GitHub.
target_url: Option<String>
The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. Note: It’s recommended to use the log_url
parameter, which replaces target_url
.
log_url: Option<String>
The full URL of the deployment’s output. This parameter replaces target_url
. We will continue to accept target_url
to support legacy uses, but we recommend replacing target_url
with log_url
. Setting log_url
will automatically set target_url
to the same value. Default: \"\"
description: Option<String>
A short description of the status. The maximum description length is 140 characters.
environment: Option<String>
Name for the target deployment environment, which can be changed when setting a deploy status. For example, production
, staging
, or qa
. If not defined, the environment of the previous status on the deployment will be used, if it exists. Otherwise, the environment of the deployment will be used.
environment_url: Option<String>
Sets the URL for accessing your environment. Default: \"\"
auto_inactive: Option<bool>
Adds a new inactive
status to all prior non-transient, non-production environment deployments with the same repository and environment
name as the created status’s deployment. An inactive
status is only added to deployments that had a success
state. Default: true
Implementations§
Source§impl ReposCreateDeploymentStatusRequest
impl ReposCreateDeploymentStatusRequest
pub fn new(state: State) -> ReposCreateDeploymentStatusRequest
Trait Implementations§
Source§impl Clone for ReposCreateDeploymentStatusRequest
impl Clone for ReposCreateDeploymentStatusRequest
Source§fn clone(&self) -> ReposCreateDeploymentStatusRequest
fn clone(&self) -> ReposCreateDeploymentStatusRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ReposCreateDeploymentStatusRequest
impl Default for ReposCreateDeploymentStatusRequest
Source§fn default() -> ReposCreateDeploymentStatusRequest
fn default() -> ReposCreateDeploymentStatusRequest
Source§impl<'de> Deserialize<'de> for ReposCreateDeploymentStatusRequest
impl<'de> Deserialize<'de> for ReposCreateDeploymentStatusRequest
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>,
Source§impl PartialEq for ReposCreateDeploymentStatusRequest
impl PartialEq for ReposCreateDeploymentStatusRequest
Source§fn eq(&self, other: &ReposCreateDeploymentStatusRequest) -> bool
fn eq(&self, other: &ReposCreateDeploymentStatusRequest) -> bool
self
and other
values to be equal, and is used by ==
.