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 an
@{path name[/sub]} / --flag=@{path name[/sub]} Artifact path. Parsing here only checks
shape (one slot at the end, 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 writes the declared spelling, where a literal @{ is @@{, so saved
Vec<String> forms (StoredProfile, Views) read back unchanged; Argument::literal is
the text a literal passes to a program.
Variants§
Implementations§
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 Forget for Argument
impl Freeze for Argument
impl Move for Argument
impl RefUnwindSafe for Argument
impl Send for Argumentwhere
RawVecInner: Send,
impl Sync for Argumentwhere
RawVecInner: Sync,
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argumentwhere
RawVecInner: UnwindSafe,
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.