pub struct Output {
pub status_code: Option<i32>,
pub stdout: String,
pub stderr: String,
}Expand description
Represents the output of a shell command execution.
Fields§
§status_code: Option<i32>The exit status code of the command. It is optional to accommodate commands that may not return a status code.
stdout: StringThe standard output produced by the command.
stderr: StringThe standard error output produced by the command.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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