Struct aws_sdk_codebuild::model::BuildPhase
source · [−]#[non_exhaustive]pub struct BuildPhase {
pub phase_type: Option<BuildPhaseType>,
pub phase_status: Option<StatusType>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub duration_in_seconds: Option<i64>,
pub contexts: Option<Vec<PhaseContext>>,
}
Expand description
Information about a stage for a build.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.phase_type: Option<BuildPhaseType>
The name of the build phase. Valid values include:
- BUILD
-
Core build activities typically occur in this build phase.
- COMPLETED
-
The build has been completed.
- DOWNLOAD_SOURCE
-
Source code is being downloaded in this build phase.
- FINALIZING
-
The build process is completing in this build phase.
- INSTALL
-
Installation activities typically occur in this build phase.
- POST_BUILD
-
Post-build activities typically occur in this build phase.
- PRE_BUILD
-
Pre-build activities typically occur in this build phase.
- PROVISIONING
-
The build environment is being set up.
- QUEUED
-
The build has been submitted and is queued behind other submitted builds.
- SUBMITTED
-
The build has been submitted.
- UPLOAD_ARTIFACTS
-
Build output artifacts are being uploaded to the output location.
phase_status: Option<StatusType>
The current status of the build phase. Valid values include:
- FAILED
-
The build phase failed.
- FAULT
-
The build phase faulted.
- IN_PROGRESS
-
The build phase is still in progress.
- STOPPED
-
The build phase stopped.
- SUCCEEDED
-
The build phase succeeded.
- TIMED_OUT
-
The build phase timed out.
start_time: Option<DateTime>
When the build phase started, expressed in Unix time format.
end_time: Option<DateTime>
When the build phase ended, expressed in Unix time format.
duration_in_seconds: Option<i64>
How long, in seconds, between the starting and ending times of the build's phase.
contexts: Option<Vec<PhaseContext>>
Additional information about a build phase, especially to help troubleshoot a failed build.
Implementations
sourceimpl BuildPhase
impl BuildPhase
sourcepub fn phase_type(&self) -> Option<&BuildPhaseType>
pub fn phase_type(&self) -> Option<&BuildPhaseType>
The name of the build phase. Valid values include:
- BUILD
-
Core build activities typically occur in this build phase.
- COMPLETED
-
The build has been completed.
- DOWNLOAD_SOURCE
-
Source code is being downloaded in this build phase.
- FINALIZING
-
The build process is completing in this build phase.
- INSTALL
-
Installation activities typically occur in this build phase.
- POST_BUILD
-
Post-build activities typically occur in this build phase.
- PRE_BUILD
-
Pre-build activities typically occur in this build phase.
- PROVISIONING
-
The build environment is being set up.
- QUEUED
-
The build has been submitted and is queued behind other submitted builds.
- SUBMITTED
-
The build has been submitted.
- UPLOAD_ARTIFACTS
-
Build output artifacts are being uploaded to the output location.
sourcepub fn phase_status(&self) -> Option<&StatusType>
pub fn phase_status(&self) -> Option<&StatusType>
The current status of the build phase. Valid values include:
- FAILED
-
The build phase failed.
- FAULT
-
The build phase faulted.
- IN_PROGRESS
-
The build phase is still in progress.
- STOPPED
-
The build phase stopped.
- SUCCEEDED
-
The build phase succeeded.
- TIMED_OUT
-
The build phase timed out.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
When the build phase started, expressed in Unix time format.
sourcepub fn end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
When the build phase ended, expressed in Unix time format.
sourcepub fn duration_in_seconds(&self) -> Option<i64>
pub fn duration_in_seconds(&self) -> Option<i64>
How long, in seconds, between the starting and ending times of the build's phase.
sourcepub fn contexts(&self) -> Option<&[PhaseContext]>
pub fn contexts(&self) -> Option<&[PhaseContext]>
Additional information about a build phase, especially to help troubleshoot a failed build.
sourceimpl BuildPhase
impl BuildPhase
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture BuildPhase
.
Trait Implementations
sourceimpl Clone for BuildPhase
impl Clone for BuildPhase
sourcefn clone(&self) -> BuildPhase
fn clone(&self) -> BuildPhase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BuildPhase
impl Debug for BuildPhase
sourceimpl PartialEq<BuildPhase> for BuildPhase
impl PartialEq<BuildPhase> for BuildPhase
sourcefn eq(&self, other: &BuildPhase) -> bool
fn eq(&self, other: &BuildPhase) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BuildPhase) -> bool
fn ne(&self, other: &BuildPhase) -> bool
This method tests for !=
.
impl StructuralPartialEq for BuildPhase
Auto Trait Implementations
impl RefUnwindSafe for BuildPhase
impl Send for BuildPhase
impl Sync for BuildPhase
impl Unpin for BuildPhase
impl UnwindSafe for BuildPhase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more