pub struct ShellProcessDefinitionBuilder { /* private fields */ }Expand description
Builder for constructing a shell process definition.
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
Sets the shell command to execute.
Sourcepub fn with_arguments(&mut self, arguments: OneOfRunArguments) -> &mut Self
pub fn with_arguments(&mut self, arguments: OneOfRunArguments) -> &mut Self
Sets the shell command arguments.
Sourcepub fn with_map_arguments(&mut self, args: HashMap<String, Value>) -> &mut Self
pub fn with_map_arguments(&mut self, args: HashMap<String, Value>) -> &mut Self
Sets the shell command arguments as a key-value map.
Sourcepub fn with_array_arguments(&mut self, args: Vec<String>) -> &mut Self
pub fn with_array_arguments(&mut self, args: Vec<String>) -> &mut Self
Sets the shell command arguments as an ordered array of strings.
Sourcepub fn build(self) -> ShellProcessDefinition
pub fn build(self) -> ShellProcessDefinition
Builds the ShellProcessDefinition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShellProcessDefinitionBuilder
impl RefUnwindSafe for ShellProcessDefinitionBuilder
impl Send for ShellProcessDefinitionBuilder
impl Sync for ShellProcessDefinitionBuilder
impl Unpin for ShellProcessDefinitionBuilder
impl UnsafeUnpin 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