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