pub struct ReposCreateDeploymentRequest {
pub ref: String,
pub task: Option<String>,
pub auto_merge: Option<bool>,
pub required_contexts: Option<Vec<String>>,
pub payload: Option<Box<ReposCreateDeploymentRequestPayload>>,
pub environment: Option<String>,
pub description: Option<Option<String>>,
pub transient_environment: Option<bool>,
pub production_environment: Option<bool>,
}
Fields§
§ref: String
The ref to deploy. This can be a branch, tag, or SHA.
task: Option<String>
Specifies a task to execute (e.g., deploy
or deploy:migrations
).
auto_merge: Option<bool>
Attempts to automatically merge the default branch into the requested ref, if it’s behind the default branch.
required_contexts: Option<Vec<String>>
The status contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.
payload: Option<Box<ReposCreateDeploymentRequestPayload>>
§environment: Option<String>
Name for the target deployment environment (e.g., production
, staging
, qa
).
description: Option<Option<String>>
Short description of the deployment.
transient_environment: Option<bool>
Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: false
production_environment: Option<bool>
Specifies if the given environment is one that end-users directly interact with. Default: true
when environment
is production
and false
otherwise.
Implementations§
Source§impl ReposCreateDeploymentRequest
impl ReposCreateDeploymentRequest
pub fn new(ref: String) -> ReposCreateDeploymentRequest
Trait Implementations§
Source§impl Clone for ReposCreateDeploymentRequest
impl Clone for ReposCreateDeploymentRequest
Source§fn clone(&self) -> ReposCreateDeploymentRequest
fn clone(&self) -> ReposCreateDeploymentRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ReposCreateDeploymentRequest
impl Debug for ReposCreateDeploymentRequest
Source§impl Default for ReposCreateDeploymentRequest
impl Default for ReposCreateDeploymentRequest
Source§fn default() -> ReposCreateDeploymentRequest
fn default() -> ReposCreateDeploymentRequest
Source§impl<'de> Deserialize<'de> for ReposCreateDeploymentRequest
impl<'de> Deserialize<'de> for ReposCreateDeploymentRequest
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 ReposCreateDeploymentRequest
impl PartialEq for ReposCreateDeploymentRequest
Source§fn eq(&self, other: &ReposCreateDeploymentRequest) -> bool
fn eq(&self, other: &ReposCreateDeploymentRequest) -> bool
self
and other
values to be equal, and is used by ==
.