pub struct CommandOptions {
pub cwd: Option<PathBuf>,
pub env: HashMap<String, String>,
pub clear_env: bool,
pub encoding: Encoding,
}
Fields§
§cwd: Option<PathBuf>
§env: HashMap<String, String>
§clear_env: bool
Clear the environment variables of the spawned process.
encoding: Encoding
Character encoding for stdout/stderr.
Trait Implementations§
Source§impl Clone for CommandOptions
impl Clone for CommandOptions
Source§fn clone(&self) -> CommandOptions
fn clone(&self) -> CommandOptions
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 CommandOptions
impl Debug for CommandOptions
Source§impl Default for CommandOptions
impl Default for CommandOptions
Source§impl<'de> Deserialize<'de> for CommandOptionswhere
CommandOptions: Default,
impl<'de> Deserialize<'de> for CommandOptionswhere
CommandOptions: 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 CommandOptions
impl PartialEq for CommandOptions
Source§impl Serialize for CommandOptions
impl Serialize for CommandOptions
impl Eq for CommandOptions
impl StructuralPartialEq for CommandOptions
Auto Trait Implementations§
impl Freeze for CommandOptions
impl RefUnwindSafe for CommandOptions
impl Send for CommandOptions
impl Sync for CommandOptions
impl Unpin for CommandOptions
impl UnwindSafe for CommandOptions
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