pub enum StepInputs {
Single(ArtifactRef),
Named(HashMap<String, NamedInput>),
}Expand description
Pre-resolved input references for a step.
At resolution time, the resolver parses ${artifact.name} strings and determines
whether they reference materials or produced artifacts. This eliminates runtime
string parsing in handlers.
Variants§
Single(ArtifactRef)
Single artifact reference (e.g., reads: "${artifact.keypair}")
Named(HashMap<String, NamedInput>)
Named artifact references (e.g., reads: { key_to_wrap: "...", wrapping_key: "..." })
Implementations§
Source§impl StepInputs
impl StepInputs
Sourcepub fn as_single(&self) -> Option<&ArtifactRef>
pub fn as_single(&self) -> Option<&ArtifactRef>
Get a single input reference (returns None if this is Named).
Sourcepub fn as_named(&self) -> Option<&HashMap<String, NamedInput>>
pub fn as_named(&self) -> Option<&HashMap<String, NamedInput>>
Get named input references (returns None if this is Single).
Sourcepub fn get(&self, key: &str) -> Option<&ArtifactRef>
pub fn get(&self, key: &str) -> Option<&ArtifactRef>
Get a named input by key, when it holds one reference.
Sourcepub fn get_many(&self, key: &str) -> Option<&[ArtifactRef]>
pub fn get_many(&self, key: &str) -> Option<&[ArtifactRef]>
Get a named input by key, when it holds a list.
Trait Implementations§
Source§impl Clone for StepInputs
impl Clone for StepInputs
Auto Trait Implementations§
impl Freeze for StepInputs
impl RefUnwindSafe for StepInputs
impl Send for StepInputs
impl Sync for StepInputs
impl Unpin for StepInputs
impl UnsafeUnpin for StepInputs
impl UnwindSafe for StepInputs
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