pub struct Program {
pub name: String,
pub identity_argv: Vec<String>,
pub identity_contains: String,
}Expand description
One program the member puts on PATH, and how to tell it from a program of
the same name that is NOT this member (seeds’ sd vs chmln/sd, A2).
A version line cannot do that: both print sd <semver>. So the identity is
text only this member prints (seeds: a line of its --help), and a bare
name or name-plus-version identity is refused (wu F1).
Fields§
§name: String§identity_argv: Vec<String>Arguments that print the identity text, e.g. ["--help"].
identity_contains: StringThe identity output (stdout, then stderr) must CONTAIN this literal text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Program
impl<'de> Deserialize<'de> for Program
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
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Program
impl UnwindSafe for Program
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