pub struct ShellProcessDefinitionBuilder { /* private fields */ }Expand description
Represents the service used to build ShellProcessDefinitions
Implementations§
Source§impl ShellProcessDefinitionBuilder
impl ShellProcessDefinitionBuilder
Sourcepub fn with_command(&mut self, command: &str) -> &mut Self
pub fn with_command(&mut self, command: &str) -> &mut Self
Configures the task to execute the specified shell command
Sourcepub fn with_argument(&mut self, argument: &str) -> &mut Self
pub fn with_argument(&mut self, argument: &str) -> &mut Self
Adds a new argument to execute the shell command with
Sourcepub fn with_arguments(&mut self, arguments: Vec<String>) -> &mut Self
pub fn with_arguments(&mut self, arguments: Vec<String>) -> &mut Self
Sets the arguments of the shell command to execute
Sourcepub fn with_environment(&mut self, name: &str, value: &str) -> &mut Self
pub fn with_environment(&mut self, name: &str, value: &str) -> &mut Self
Adds the specified environment variable to the process
Sourcepub fn with_environment_variables(
&mut self,
environment: HashMap<String, String>,
) -> &mut Self
pub fn with_environment_variables( &mut self, environment: HashMap<String, String>, ) -> &mut Self
Sets the process’s environment variables
Sourcepub fn build(self) -> RunTaskDefinition
pub fn build(self) -> RunTaskDefinition
Builds the configured RunTaskDefinition
Auto Trait Implementations§
impl Freeze for ShellProcessDefinitionBuilder
impl RefUnwindSafe for ShellProcessDefinitionBuilder
impl Send for ShellProcessDefinitionBuilder
impl Sync for ShellProcessDefinitionBuilder
impl Unpin for ShellProcessDefinitionBuilder
impl UnwindSafe for ShellProcessDefinitionBuilder
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