pub struct ComposePsResult {
pub output: ComposeOutput,
pub containers: Vec<ComposeContainerInfo>,
}
Expand description
Result from compose ps command
Fields§
§output: ComposeOutput
Raw command output
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
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