pub struct SetupStep {
pub name: Option<String>,
pub run: Vec<String>,
}Expand description
One entry in jj-hooks.setup.
Fields§
§name: Option<String>Optional label used in failure messages. Falls back to
run[0] (the bare program name) when omitted.
run: Vec<String>argv list — Command::new(run[0]).args(&run[1..]). We use
argv (not a shell string) so quoting rules can’t bite. For
chained commands the user runs bash -c "..." explicitly.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SetupStep
impl<'de> Deserialize<'de> for SetupStep
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
impl Eq for SetupStep
impl StructuralPartialEq for SetupStep
Auto Trait Implementations§
impl Freeze for SetupStep
impl RefUnwindSafe for SetupStep
impl Send for SetupStep
impl Sync for SetupStep
impl Unpin for SetupStep
impl UnsafeUnpin for SetupStep
impl UnwindSafe for SetupStep
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