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