pub struct PlannedCommand {
pub name: Option<String>,
pub command: CommandKind,
pub cwd: Option<PathBuf>,
pub cwd_path: PathBuf,
pub env: BTreeMap<String, String>,
pub allow_failure: bool,
pub declaration: SourceSpan,
}Expand description
A validated command operation ready for execution.
Fields§
§name: Option<String>Optional display name.
command: CommandKindCommand invocation.
cwd: Option<PathBuf>Declared working directory.
cwd_path: PathBufNormalized working directory.
env: BTreeMap<String, String>Extra environment variables for this command.
allow_failure: boolWhether a non-zero exit status should be non-fatal.
declaration: SourceSpanSource location for the command declaration.
Trait Implementations§
Source§impl Clone for PlannedCommand
impl Clone for PlannedCommand
Source§fn clone(&self) -> PlannedCommand
fn clone(&self) -> PlannedCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlannedCommand
impl Debug for PlannedCommand
impl Eq for PlannedCommand
Source§impl PartialEq for PlannedCommand
impl PartialEq for PlannedCommand
Source§fn eq(&self, other: &PlannedCommand) -> bool
fn eq(&self, other: &PlannedCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlannedCommand
Auto Trait Implementations§
impl Freeze for PlannedCommand
impl RefUnwindSafe for PlannedCommand
impl Send for PlannedCommand
impl Sync for PlannedCommand
impl Unpin for PlannedCommand
impl UnsafeUnpin for PlannedCommand
impl UnwindSafe for PlannedCommand
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