pub struct BuildStatusPostPayload {
pub key: String,
pub state: BuildStatusState,
pub url: String,
pub build_number: Option<String>,
pub date_added: Option<DateTime<Utc>>,
pub description: Option<String>,
pub duration: Option<u64>,
pub name: Option<String>,
pub parent: Option<String>,
pub reference: Option<String>,
pub test_results: Option<TestResults>,
}
Expand description
The payload for posting a build status update.
This struct represents the data that will be sent to the Bitbucket Server API when posting a build status update for a commit.
Fields§
§key: String
The string referring to this branch plan/job.
This is a unique identifier for the build status within the context of the repository.
state: BuildStatusState
The build status state (SUCCESSFUL, FAILED, INPROGRESS, CANCELLED, or UNKNOWN).
url: String
URL referring to the build result page in the CI tool.
This URL will be linked from the Bitbucket Server UI.
build_number: Option<String>
A unique identifier for this particular run of a plan.
This can be used to track specific build runs.
date_added: Option<DateTime<Utc>>
The date when the build status was added.
If not provided, the current time will be used.
description: Option<String>
A description of the build result.
This can provide additional context about the build status.
duration: Option<u64>
Duration of a completed build in milliseconds.
This can be used to track build performance.
name: Option<String>
A short string that describes the build plan.
This is displayed in the Bitbucket Server UI.
parent: Option<String>
The identifier for the plan or job that ran the branch plan that produced this build status.
This can be used to group related builds.
reference: Option<String>
The fully qualified git reference e.g. refs/heads/master.
This can be used to associate the build status with a specific branch or tag.
test_results: Option<TestResults>
A summary of the passed, failed and skipped tests.
This can be used to provide test result information.
Trait Implementations§
Source§impl Clone for BuildStatusPostPayload
impl Clone for BuildStatusPostPayload
Source§fn clone(&self) -> BuildStatusPostPayload
fn clone(&self) -> BuildStatusPostPayload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more