pub struct ShellCommand {
pub command: String,
pub args: Vec<String>,
}Expand description
Shell command builder and parser
Fields§
§command: StringThe base command
args: Vec<String>Command arguments
Implementations§
Source§impl ShellCommand
impl ShellCommand
Sourcepub fn to_shell_string(&self) -> String
pub fn to_shell_string(&self) -> String
Convert to a shell-escaped string
Trait Implementations§
Source§impl Clone for ShellCommand
impl Clone for ShellCommand
Source§fn clone(&self) -> ShellCommand
fn clone(&self) -> ShellCommand
Returns a duplicate 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 ShellCommand
impl Debug for ShellCommand
Source§impl Display for ShellCommand
impl Display for ShellCommand
Source§impl PartialEq for ShellCommand
impl PartialEq for ShellCommand
impl StructuralPartialEq for ShellCommand
Auto Trait Implementations§
impl Freeze for ShellCommand
impl RefUnwindSafe for ShellCommand
impl Send for ShellCommand
impl Sync for ShellCommand
impl Unpin for ShellCommand
impl UnwindSafe for ShellCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Contextual for Twhere
T: Display,
impl<T> Contextual for Twhere
T: Display,
Source§fn with_context(&self, context: impl Display) -> String
fn with_context(&self, context: impl Display) -> String
Format with additional context