pub struct StartResult {
pub stdout: String,
pub stderr: String,
pub started_containers: Vec<String>,
}
Expand description
Result of a start command execution
Fields§
§stdout: String
Raw stdout from the command
stderr: String
Raw stderr from the command
started_containers: Vec<String>
Container IDs that were started
Implementations§
Source§impl StartResult
impl StartResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the command was successful
Sourcepub fn container_count(&self) -> usize
pub fn container_count(&self) -> usize
Get the number of containers that were started
Sourcepub fn first_container(&self) -> Option<&String>
pub fn first_container(&self) -> Option<&String>
Get the first started container ID (useful for single container operations)
Sourcepub fn contains_container(&self, container: &str) -> bool
pub fn contains_container(&self, container: &str) -> bool
Check if a specific container was started
Trait Implementations§
Source§impl Clone for StartResult
impl Clone for StartResult
Source§fn clone(&self) -> StartResult
fn clone(&self) -> StartResult
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 StartResult
impl Debug for StartResult
Source§impl PartialEq for StartResult
impl PartialEq for StartResult
impl StructuralPartialEq for StartResult
Auto Trait Implementations§
impl Freeze for StartResult
impl RefUnwindSafe for StartResult
impl Send for StartResult
impl Sync for StartResult
impl Unpin for StartResult
impl UnwindSafe for StartResult
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