pub enum NamedInput {
One(ArtifactRef),
Many(Vec<ArtifactRef>),
}Expand description
The value under one key of a reads: map: one reference, or a list of
them for an action that takes as many as the ceremony gives it.
Which shape a key takes is the action’s contract, and the resolver checks it, so a handler asks for the shape it expects and treats the other as absent.
Variants§
One(ArtifactRef)
key: "${artifact.x}"
Many(Vec<ArtifactRef>)
key: ["${artifact.x}", "${artifact.y}"], in the order written.
Implementations§
Source§impl NamedInput
impl NamedInput
Sourcepub fn refs(&self) -> &[ArtifactRef]
pub fn refs(&self) -> &[ArtifactRef]
Every reference under the key, one or many.
Trait Implementations§
Source§impl Clone for NamedInput
impl Clone for NamedInput
Auto Trait Implementations§
impl Freeze for NamedInput
impl RefUnwindSafe for NamedInput
impl Send for NamedInput
impl Sync for NamedInput
impl Unpin for NamedInput
impl UnsafeUnpin for NamedInput
impl UnwindSafe for NamedInput
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