#[non_exhaustive]pub struct TargetRender {
pub rendering_build: String,
pub rendering_state: TargetRenderState,
pub metadata: Option<RenderMetadata>,
pub failure_cause: FailureCause,
pub failure_message: String,
/* private fields */
}
Expand description
Details of rendering for a single target.
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.rendering_build: String
Output only. The resource name of the Cloud Build Build
object that is
used to render the manifest for this target. Format is
projects/{project}/locations/{location}/builds/{build}
.
rendering_state: TargetRenderState
Output only. Current state of the render operation for this Target.
metadata: Option<RenderMetadata>
Output only. Metadata related to the Release
render for this Target.
failure_cause: FailureCause
Output only. Reason this render failed. This will always be unspecified while the render in progress.
failure_message: String
Output only. Additional information about the render failure, if available.
Implementations§
Source§impl TargetRender
impl TargetRender
pub fn new() -> Self
Sourcepub fn set_rendering_build<T: Into<String>>(self, v: T) -> Self
pub fn set_rendering_build<T: Into<String>>(self, v: T) -> Self
Sets the value of rendering_build.
Sourcepub fn set_rendering_state<T: Into<TargetRenderState>>(self, v: T) -> Self
pub fn set_rendering_state<T: Into<TargetRenderState>>(self, v: T) -> Self
Sets the value of rendering_state.
Sourcepub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<RenderMetadata>,
pub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<RenderMetadata>,
Sets the value of metadata.
Sourcepub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<RenderMetadata>,
pub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<RenderMetadata>,
Sets or clears the value of metadata.
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 TargetRender
impl Clone for TargetRender
Source§fn clone(&self) -> TargetRender
fn clone(&self) -> TargetRender
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 TargetRender
impl Debug for TargetRender
Source§impl Default for TargetRender
impl Default for TargetRender
Source§fn default() -> TargetRender
fn default() -> TargetRender
Returns the “default value” for a type. Read more
Source§impl Message for TargetRender
impl Message for TargetRender
Source§impl PartialEq for TargetRender
impl PartialEq for TargetRender
impl StructuralPartialEq for TargetRender
Auto Trait Implementations§
impl Freeze for TargetRender
impl RefUnwindSafe for TargetRender
impl Send for TargetRender
impl Sync for TargetRender
impl Unpin for TargetRender
impl UnwindSafe for TargetRender
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