pub struct StopResult {
pub stdout: String,
pub stderr: String,
pub stopped_containers: Vec<String>,
}
Expand description
Result of a stop command execution
Fields§
§stdout: String
Raw stdout from the command
stderr: String
Raw stderr from the command
stopped_containers: Vec<String>
Container IDs that were stopped
Implementations§
Source§impl StopResult
impl StopResult
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 stopped
Sourcepub fn first_container(&self) -> Option<&String>
pub fn first_container(&self) -> Option<&String>
Get the first stopped 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 stopped
Trait Implementations§
Source§impl Clone for StopResult
impl Clone for StopResult
Source§fn clone(&self) -> StopResult
fn clone(&self) -> StopResult
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 StopResult
impl Debug for StopResult
Source§impl PartialEq for StopResult
impl PartialEq for StopResult
impl StructuralPartialEq for StopResult
Auto Trait Implementations§
impl Freeze for StopResult
impl RefUnwindSafe for StopResult
impl Send for StopResult
impl Sync for StopResult
impl Unpin for StopResult
impl UnwindSafe for StopResult
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