Struct warpgate_pdk::ExecCommandInput
source · pub struct ExecCommandInput {
pub args: Vec<String>,
pub command: String,
pub env: HashMap<String, String, BuildHasherDefault<FxHasher>>,
pub stream: bool,
pub working_dir: Option<VirtualPath>,
/* private fields */
}
Expand description
Input passed to the exec_command
host function.
Fields§
§args: Vec<String>
Arguments to pass to the command.
command: String
The command or script to execute.
env: HashMap<String, String, BuildHasherDefault<FxHasher>>
Environment variables to pass to the command.
stream: bool
Stream the output instead of capturing it.
working_dir: Option<VirtualPath>
Override the current working directory.
Implementations§
source§impl ExecCommandInput
impl ExecCommandInput
sourcepub fn pipe<C, I, V>(command: C, args: I) -> ExecCommandInput
pub fn pipe<C, I, V>(command: C, args: I) -> ExecCommandInput
Create a new command that pipes and captures the output.
sourcepub fn inherit<C, I, V>(command: C, args: I) -> ExecCommandInput
pub fn inherit<C, I, V>(command: C, args: I) -> ExecCommandInput
Create a new command that inherits and streams the output.
Trait Implementations§
source§impl Clone for ExecCommandInput
impl Clone for ExecCommandInput
source§fn clone(&self) -> ExecCommandInput
fn clone(&self) -> ExecCommandInput
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 ExecCommandInput
impl Debug for ExecCommandInput
source§impl Default for ExecCommandInput
impl Default for ExecCommandInput
source§fn default() -> ExecCommandInput
fn default() -> ExecCommandInput
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExecCommandInputwhere
ExecCommandInput: Default,
impl<'de> Deserialize<'de> for ExecCommandInputwhere
ExecCommandInput: Default,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExecCommandInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ExecCommandInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ExecCommandInput
impl PartialEq for ExecCommandInput
source§fn eq(&self, other: &ExecCommandInput) -> bool
fn eq(&self, other: &ExecCommandInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExecCommandInput
impl Serialize for ExecCommandInput
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExecCommandInput
Auto Trait Implementations§
impl Freeze for ExecCommandInput
impl RefUnwindSafe for ExecCommandInput
impl Send for ExecCommandInput
impl Sync for ExecCommandInput
impl Unpin for ExecCommandInput
impl UnwindSafe for ExecCommandInput
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