Struct octorust::types::ReposCreateDeploymentRequest [−][src]
pub struct ReposCreateDeploymentRequest { pub auto_merge: bool, pub description: String, pub environment: String, pub payload: Option<ReposCreateDeploymentRequestPayloadOneOf>, pub production_environment: bool, pub ref_: String, pub required_contexts: Vec<String>, pub task: String, pub transient_environment: bool, }
Fields
auto_merge: bool
Attempts to automatically merge the default branch into the requested ref, if it’s behind the default branch.
description: String
Short description of the deployment.
environment: String
Name for the target deployment environment (e.g., production
, staging
, qa
).
payload: Option<ReposCreateDeploymentRequestPayloadOneOf>
One of the following types:
Data
String
You can easily convert this enum to the inner value with From
and Into
, as both are implemented for each type.
production_environment: bool
Specifies if the given environment is one that end-users directly interact with. Default: true
when environment
is production
and false
otherwise.
**Note:** This parameter requires you to use the application/vnd.github.ant-man-preview+json
custom media type.
ref_: String
The ref to deploy. This can be a branch, tag, or SHA.
required_contexts: 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.
task: String
Specifies a task to execute (e.g., deploy
or deploy:migrations
).
transient_environment: bool
Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: false
**Note:** This parameter requires you to use the application/vnd.github.ant-man-preview+json
custom media type.
Trait Implementations
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 Send for ReposCreateDeploymentRequest
impl Sync for ReposCreateDeploymentRequest
impl Unpin for ReposCreateDeploymentRequest
impl UnwindSafe for ReposCreateDeploymentRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more