#[non_exhaustive]pub struct DeployJobRun {
pub build: String,
pub failure_cause: FailureCause,
pub failure_message: String,
pub metadata: Option<DeployJobRunMetadata>,
pub artifact: Option<DeployArtifact>,
/* private fields */
}
Expand description
DeployJobRun contains information specific to a deploy JobRun
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.build: String
Output only. The resource name of the Cloud Build Build
object that is
used to deploy. Format is
projects/{project}/locations/{location}/builds/{build}
.
failure_cause: FailureCause
Output only. The reason the deploy failed. This will always be unspecified while the deploy is in progress or if it succeeded.
failure_message: String
Output only. Additional information about the deploy failure, if available.
metadata: Option<DeployJobRunMetadata>
Output only. Metadata containing information about the deploy job run.
artifact: Option<DeployArtifact>
Output only. The artifact of a deploy job run, if available.
Implementations§
Source§impl DeployJobRun
impl DeployJobRun
pub fn new() -> Self
Sourcepub fn set_failure_cause<T: Into<FailureCause>>(self, v: T) -> Self
pub fn set_failure_cause<T: Into<FailureCause>>(self, v: T) -> Self
Sets the value of failure_cause.
Sourcepub fn set_failure_message<T: Into<String>>(self, v: T) -> Self
pub fn set_failure_message<T: Into<String>>(self, v: T) -> Self
Sets the value of failure_message.
Sourcepub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<DeployJobRunMetadata>,
pub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<DeployJobRunMetadata>,
Sets the value of metadata.
Sourcepub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeployJobRunMetadata>,
pub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeployJobRunMetadata>,
Sets or clears the value of metadata.
Sourcepub fn set_artifact<T>(self, v: T) -> Selfwhere
T: Into<DeployArtifact>,
pub fn set_artifact<T>(self, v: T) -> Selfwhere
T: Into<DeployArtifact>,
Sets the value of artifact.
Sourcepub fn set_or_clear_artifact<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeployArtifact>,
pub fn set_or_clear_artifact<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeployArtifact>,
Sets or clears the value of artifact.
Trait Implementations§
Source§impl Clone for DeployJobRun
impl Clone for DeployJobRun
Source§fn clone(&self) -> DeployJobRun
fn clone(&self) -> DeployJobRun
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeployJobRun
impl Debug for DeployJobRun
Source§impl Default for DeployJobRun
impl Default for DeployJobRun
Source§fn default() -> DeployJobRun
fn default() -> DeployJobRun
Returns the “default value” for a type. Read more
Source§impl Message for DeployJobRun
impl Message for DeployJobRun
Source§impl PartialEq for DeployJobRun
impl PartialEq for DeployJobRun
impl StructuralPartialEq for DeployJobRun
Auto Trait Implementations§
impl Freeze for DeployJobRun
impl RefUnwindSafe for DeployJobRun
impl Send for DeployJobRun
impl Sync for DeployJobRun
impl Unpin for DeployJobRun
impl UnwindSafe for DeployJobRun
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more