pub struct ComposeRmCommand {
pub config: ComposeConfig,
pub force: bool,
pub stop: bool,
pub volumes: bool,
pub all: bool,
pub services: Vec<String>,
}
Expand description
Docker Compose rm command
Remove stopped service containers.
Fields§
§config: ComposeConfig
Base configuration
force: bool
Force removal without confirmation
stop: bool
Stop containers if running
volumes: bool
Remove volumes
all: bool
Remove all containers (not just stopped)
services: Vec<String>
Services to remove
Implementations§
Source§impl ComposeRmCommand
impl ComposeRmCommand
Trait Implementations§
Source§impl Clone for ComposeRmCommand
impl Clone for ComposeRmCommand
Source§fn clone(&self) -> ComposeRmCommand
fn clone(&self) -> ComposeRmCommand
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 ComposeCommandV2 for ComposeRmCommand
impl ComposeCommandV2 for ComposeRmCommand
Source§fn get_config(&self) -> &ComposeConfig
fn get_config(&self) -> &ComposeConfig
Get the compose configuration
Source§fn get_config_mut(&mut self) -> &mut ComposeConfig
fn get_config_mut(&mut self) -> &mut ComposeConfig
Get mutable compose configuration
Source§fn execute_compose<'life0, 'async_trait>(
&'life0 self,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_compose<'life0, 'async_trait>(
&'life0 self,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute compose command with given arguments
Source§impl Debug for ComposeRmCommand
impl Debug for ComposeRmCommand
Source§impl Default for ComposeRmCommand
impl Default for ComposeRmCommand
Source§fn default() -> ComposeRmCommand
fn default() -> ComposeRmCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeRmCommand
impl RefUnwindSafe for ComposeRmCommand
impl Send for ComposeRmCommand
impl Sync for ComposeRmCommand
impl Unpin for ComposeRmCommand
impl UnwindSafe for ComposeRmCommand
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