pub enum Argument {
Literal(String),
Reference {
prefix: String,
name: ReferenceName,
path: LogicalTarget,
},
}Expand description
A declared argument, parsed once when its declaration loads: either a plain literal, or a
{name}[/path] / --flag={name}[/path] Artifact reference. Parsing here only checks shape
(a single well-formed reference, a valid path suffix); whether name names a real Artifact
is a separate, config-wide check ([reference_target]) run once every declaration is loaded.
std::fmt::Display reconstructs the exact original text, so round-tripping through the
saved Vec<String> forms (StoredProfile, Views) changes no byte and no reuse key.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Argument
impl<'de> Deserialize<'de> for Argument
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
impl Eq for Argument
Source§impl From<&str> for Argument
For fixtures: a trusted literal string, as declarations and test tables already spell it.
impl From<&str> for Argument
For fixtures: a trusted literal string, as declarations and test tables already spell it.
Source§impl PartialEq<str> for Argument
Equal iff other, spelled as a declared argument, is the same literal or reference: not a
mere prefix/suffix match, and never panics on a malformed other (it is just unequal).
impl PartialEq<str> for Argument
Equal iff other, spelled as a declared argument, is the same literal or reference: not a
mere prefix/suffix match, and never panics on a malformed other (it is just unequal).
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argument
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.