pub struct ArtifactInput {
pub step: String,
pub name: String,
pub dest: Option<String>,
}Expand description
An artifact the step wants placed in its working directory before it runs.
Resolved within the current run and attempt, among steps positioned strictly
before the consumer. When several steps share step, the one closest to the
consumer wins. No match fails the step with
ArtifactNotFound.
A sub-workflow never sees its parent’s artifacts: pass what it needs through the payload instead.
§Examples
use ironflow_engine::config::ArtifactInput;
let input = ArtifactInput::new("build", "report.html");
assert_eq!(input.destination(), "report.html");
let renamed = ArtifactInput::new("build", "report.html").at("inputs/report.html");
assert_eq!(renamed.destination(), "inputs/report.html");Fields§
§step: StringName of the step that produced the artifact.
name: StringName of the artifact.
dest: Option<String>Where to write it, relative to the working directory.
Defaults to name.
Implementations§
Source§impl ArtifactInput
impl ArtifactInput
Trait Implementations§
Source§impl Clone for ArtifactInput
impl Clone for ArtifactInput
Source§fn clone(&self) -> ArtifactInput
fn clone(&self) -> ArtifactInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArtifactInput
impl Debug for ArtifactInput
Source§impl<'de> Deserialize<'de> for ArtifactInput
impl<'de> Deserialize<'de> for ArtifactInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArtifactInput
Source§impl PartialEq for ArtifactInput
impl PartialEq for ArtifactInput
Source§impl Serialize for ArtifactInput
impl Serialize for ArtifactInput
impl StructuralPartialEq for ArtifactInput
Auto Trait Implementations§
impl Freeze for ArtifactInput
impl RefUnwindSafe for ArtifactInput
impl Send for ArtifactInput
impl Sync for ArtifactInput
impl Unpin for ArtifactInput
impl UnsafeUnpin for ArtifactInput
impl UnwindSafe for ArtifactInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.