pub struct CommandOperation {
pub name: Option<String>,
pub command: CommandKind,
pub cwd: Option<PathBuf>,
pub cwd_path: Option<PathBuf>,
pub env: BTreeMap<String, String>,
pub allow_failure: bool,
pub declaration: SourceSpan,
}Expand description
A normalized command operation.
Fields§
§name: Option<String>Optional display name.
command: CommandKindCommand invocation.
cwd: Option<PathBuf>Declared working directory.
cwd_path: Option<PathBuf>Working directory resolved from the current worktree.
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 CommandOperation
impl Clone for CommandOperation
Source§fn clone(&self) -> CommandOperation
fn clone(&self) -> CommandOperation
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 CommandOperation
impl Debug for CommandOperation
impl Eq for CommandOperation
Source§impl PartialEq for CommandOperation
impl PartialEq for CommandOperation
Source§fn eq(&self, other: &CommandOperation) -> bool
fn eq(&self, other: &CommandOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommandOperation
impl Serialize for CommandOperation
impl StructuralPartialEq for CommandOperation
Auto Trait Implementations§
impl Freeze for CommandOperation
impl RefUnwindSafe for CommandOperation
impl Send for CommandOperation
impl Sync for CommandOperation
impl Unpin for CommandOperation
impl UnsafeUnpin for CommandOperation
impl UnwindSafe for CommandOperation
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