Struct proto_pdk_api::ExecCommandInput
source · pub struct ExecCommandInput {
pub args: Vec<String>,
pub command: String,
pub env_vars: HashMap<String, String>,
pub stream: bool,
/* 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 to execute.
env_vars: HashMap<String, String>
Environment variables to pass to the command.
stream: bool
Stream the output instead of capturing it.
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<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 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
impl Eq for ExecCommandInput
impl StructuralEq for ExecCommandInput
impl StructuralPartialEq for ExecCommandInput
Auto Trait Implementations§
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