pub struct LsResult {
pub projects: Vec<ComposeProject>,
pub raw_output: String,
}
Expand description
Result from ls command
Fields§
§projects: Vec<ComposeProject>
List of compose projects
raw_output: String
Raw output (for non-JSON formats)
Implementations§
Source§impl LsResult
impl LsResult
Sourcepub fn project_names(&self) -> Vec<String>
pub fn project_names(&self) -> Vec<String>
Get project names
Sourcepub fn has_project(&self, name: &str) -> bool
pub fn has_project(&self, name: &str) -> bool
Check if a project exists
Sourcepub fn running_projects(&self) -> Vec<&ComposeProject>
pub fn running_projects(&self) -> Vec<&ComposeProject>
Get running projects
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LsResult
impl RefUnwindSafe for LsResult
impl Send for LsResult
impl Sync for LsResult
impl Unpin for LsResult
impl UnwindSafe for LsResult
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