pub struct ShellResult {
pub exit_code: i64,
pub stdout: String,
pub stderr: String,
}Expand description
Result of running a shell command.
Fields§
§exit_code: i64Exit code from the command.
stdout: StringStandard output from the command.
stderr: StringStandard error from the command.
Trait Implementations§
Source§impl Clone for ShellResult
impl Clone for ShellResult
Source§fn clone(&self) -> ShellResult
fn clone(&self) -> ShellResult
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 ShellResult
impl Debug for ShellResult
Source§impl<'de> Deserialize<'de> for ShellResult
impl<'de> Deserialize<'de> for ShellResult
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
Auto Trait Implementations§
impl Freeze for ShellResult
impl RefUnwindSafe for ShellResult
impl Send for ShellResult
impl Sync for ShellResult
impl Unpin for ShellResult
impl UnsafeUnpin for ShellResult
impl UnwindSafe for ShellResult
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