Struct proto_pdk_api::CommandInstruction
source · pub struct CommandInstruction {
pub bin: String,
pub args: Vec<String>,
pub env: FxHashMap<String, String>,
pub cwd: Option<PathBuf>,
}
Expand description
A command and its parameters to be executed as a child process.
Fields§
§bin: String
The binary on PATH
.
args: Vec<String>
List of arguments.
env: FxHashMap<String, String>
Map of environment variables.
cwd: Option<PathBuf>
The working directory.
Implementations§
Trait Implementations§
source§impl Clone for CommandInstruction
impl Clone for CommandInstruction
source§fn clone(&self) -> CommandInstruction
fn clone(&self) -> CommandInstruction
Returns a copy of the value. Read more
1.0.0 · 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 CommandInstruction
impl Debug for CommandInstruction
source§impl Default for CommandInstruction
impl Default for CommandInstruction
source§fn default() -> CommandInstruction
fn default() -> CommandInstruction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CommandInstructionwhere
CommandInstruction: Default,
impl<'de> Deserialize<'de> for CommandInstructionwhere
CommandInstruction: Default,
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
source§impl PartialEq for CommandInstruction
impl PartialEq for CommandInstruction
source§fn eq(&self, other: &CommandInstruction) -> bool
fn eq(&self, other: &CommandInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CommandInstruction
impl Serialize for CommandInstruction
impl StructuralPartialEq for CommandInstruction
Auto Trait Implementations§
impl Freeze for CommandInstruction
impl RefUnwindSafe for CommandInstruction
impl Send for CommandInstruction
impl Sync for CommandInstruction
impl Unpin for CommandInstruction
impl UnwindSafe for CommandInstruction
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