pub struct BuildOutput {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
pub image_id: Option<String>,
}
Expand description
Output from docker build command
Fields§
§stdout: String
The raw stdout from the command
stderr: String
The raw stderr from the command
exit_code: i32
Exit code from the command
image_id: Option<String>
Built image ID (extracted from output)
Implementations§
Source§impl BuildOutput
impl BuildOutput
Sourcepub fn combined_output(&self) -> String
pub fn combined_output(&self) -> String
Get combined output (stdout + stderr)
Sourcepub fn stdout_is_empty(&self) -> bool
pub fn stdout_is_empty(&self) -> bool
Check if stdout is empty (ignoring whitespace)
Sourcepub fn stderr_is_empty(&self) -> bool
pub fn stderr_is_empty(&self) -> bool
Check if stderr is empty (ignoring whitespace)
Trait Implementations§
Source§impl Clone for BuildOutput
impl Clone for BuildOutput
Source§fn clone(&self) -> BuildOutput
fn clone(&self) -> BuildOutput
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 BuildOutput
impl RefUnwindSafe for BuildOutput
impl Send for BuildOutput
impl Sync for BuildOutput
impl Unpin for BuildOutput
impl UnwindSafe for BuildOutput
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