#[non_exhaustive]pub struct TargetArtifact {
pub skaffold_config_path: String,
pub manifest_path: String,
pub phase_artifacts: HashMap<String, PhaseArtifact>,
pub uri: Option<Uri>,
/* private fields */
}
Expand description
The artifacts produced by a target render operation.
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.skaffold_config_path: String
Output only. File path of the resolved Skaffold configuration for the stable phase, relative to the URI.
manifest_path: String
Output only. File path of the rendered manifest relative to the URI for the stable phase.
phase_artifacts: HashMap<String, PhaseArtifact>
Output only. Map from the phase ID to the phase artifacts for the Target
.
uri: Option<Uri>
Implementations§
Source§impl TargetArtifact
impl TargetArtifact
pub fn new() -> Self
Sourcepub fn set_skaffold_config_path<T: Into<String>>(self, v: T) -> Self
pub fn set_skaffold_config_path<T: Into<String>>(self, v: T) -> Self
Sets the value of skaffold_config_path.
Sourcepub fn set_manifest_path<T: Into<String>>(self, v: T) -> Self
pub fn set_manifest_path<T: Into<String>>(self, v: T) -> Self
Sets the value of manifest_path.
Sourcepub fn set_phase_artifacts<T, K, V>(self, v: T) -> Self
pub fn set_phase_artifacts<T, K, V>(self, v: T) -> Self
Sets the value of phase_artifacts.
Sourcepub fn set_uri<T: Into<Option<Uri>>>(self, v: T) -> Self
pub fn set_uri<T: Into<Option<Uri>>>(self, v: T) -> Self
Sets the value of uri.
Note that all the setters affecting uri
are mutually
exclusive.
Sourcepub fn artifact_uri(&self) -> Option<&String>
pub fn artifact_uri(&self) -> Option<&String>
The value of uri
if it holds a ArtifactUri
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_artifact_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of uri
to hold a ArtifactUri
.
Note that all the setters affecting uri
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for TargetArtifact
impl Clone for TargetArtifact
Source§fn clone(&self) -> TargetArtifact
fn clone(&self) -> TargetArtifact
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 TargetArtifact
impl Debug for TargetArtifact
Source§impl Default for TargetArtifact
impl Default for TargetArtifact
Source§fn default() -> TargetArtifact
fn default() -> TargetArtifact
Returns the “default value” for a type. Read more
Source§impl Message for TargetArtifact
impl Message for TargetArtifact
Source§impl PartialEq for TargetArtifact
impl PartialEq for TargetArtifact
impl StructuralPartialEq for TargetArtifact
Auto Trait Implementations§
impl Freeze for TargetArtifact
impl RefUnwindSafe for TargetArtifact
impl Send for TargetArtifact
impl Sync for TargetArtifact
impl Unpin for TargetArtifact
impl UnwindSafe for TargetArtifact
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