pub struct ComposePsResult {
pub stdout: String,
pub stderr: String,
pub success: bool,
pub containers: Vec<ComposeContainerInfo>,
}
Expand description
Result from compose ps command
Fields§
§stdout: String
Raw stdout output
stderr: String
Raw stderr output
success: bool
Success status
containers: Vec<ComposeContainerInfo>
Parsed container information (if JSON format)
Implementations§
Source§impl ComposePsResult
impl ComposePsResult
Sourcepub fn containers(&self) -> &[ComposeContainerInfo]
pub fn containers(&self) -> &[ComposeContainerInfo]
Get container information
Sourcepub fn container_ids(&self) -> Vec<String>
pub fn container_ids(&self) -> Vec<String>
Get container IDs from output
Sourcepub fn stdout_lines(&self) -> Vec<&str>
pub fn stdout_lines(&self) -> Vec<&str>
Get stdout lines
Trait Implementations§
Source§impl Clone for ComposePsResult
impl Clone for ComposePsResult
Source§fn clone(&self) -> ComposePsResult
fn clone(&self) -> ComposePsResult
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 ComposePsResult
impl RefUnwindSafe for ComposePsResult
impl Send for ComposePsResult
impl Sync for ComposePsResult
impl Unpin for ComposePsResult
impl UnwindSafe for ComposePsResult
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