#[non_exhaustive]pub struct PostdeployJobRun {
pub build: String,
pub failure_cause: FailureCause,
pub failure_message: String,
/* private fields */
}
Expand description
PostdeployJobRun contains information specific to a postdeploy 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 execute the custom actions associated with the postdeploy Job.
Format is projects/{project}/locations/{location}/builds/{build}
.
failure_cause: FailureCause
Output only. The reason the postdeploy failed. This will always be unspecified while the postdeploy is in progress or if it succeeded.
failure_message: String
Output only. Additional information about the postdeploy failure, if available.
Implementations§
Source§impl PostdeployJobRun
impl PostdeployJobRun
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.
Trait Implementations§
Source§impl Clone for PostdeployJobRun
impl Clone for PostdeployJobRun
Source§fn clone(&self) -> PostdeployJobRun
fn clone(&self) -> PostdeployJobRun
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 PostdeployJobRun
impl Debug for PostdeployJobRun
Source§impl Default for PostdeployJobRun
impl Default for PostdeployJobRun
Source§fn default() -> PostdeployJobRun
fn default() -> PostdeployJobRun
Returns the “default value” for a type. Read more
Source§impl Message for PostdeployJobRun
impl Message for PostdeployJobRun
Source§impl PartialEq for PostdeployJobRun
impl PartialEq for PostdeployJobRun
impl StructuralPartialEq for PostdeployJobRun
Auto Trait Implementations§
impl Freeze for PostdeployJobRun
impl RefUnwindSafe for PostdeployJobRun
impl Send for PostdeployJobRun
impl Sync for PostdeployJobRun
impl Unpin for PostdeployJobRun
impl UnwindSafe for PostdeployJobRun
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