pub struct CommandOutput {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
pub success: bool,
}
Expand description
Output from executing a Docker command
Fields§
§stdout: String
Standard output from the command
stderr: String
Standard error from the command
exit_code: i32
Exit code
success: bool
Whether the command was successful
Implementations§
Source§impl CommandOutput
impl CommandOutput
Sourcepub fn stdout_lines(&self) -> Vec<&str>
pub fn stdout_lines(&self) -> Vec<&str>
Get stdout lines as a vector
Sourcepub fn stderr_lines(&self) -> Vec<&str>
pub fn stderr_lines(&self) -> Vec<&str>
Get stderr lines as a vector
Sourcepub fn stdout_is_empty(&self) -> bool
pub fn stdout_is_empty(&self) -> bool
Check if stdout is empty
Sourcepub fn stderr_is_empty(&self) -> bool
pub fn stderr_is_empty(&self) -> bool
Check if stderr is empty
Trait Implementations§
Source§impl Clone for CommandOutput
impl Clone for CommandOutput
Source§fn clone(&self) -> CommandOutput
fn clone(&self) -> CommandOutput
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 moreAuto Trait Implementations§
impl Freeze for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnwindSafe for CommandOutput
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