pub struct ComposeScaleCommand {
pub config: ComposeConfig,
pub scales: HashMap<String, u32>,
pub no_deps: bool,
}
Expand description
Docker Compose scale command
Scale services to specific number of instances.
Fields§
§config: ComposeConfig
Base configuration
scales: HashMap<String, u32>
Service scale specifications (service=num)
no_deps: bool
Don’t start new containers
Implementations§
Source§impl ComposeScaleCommand
impl ComposeScaleCommand
Trait Implementations§
Source§impl Clone for ComposeScaleCommand
impl Clone for ComposeScaleCommand
Source§fn clone(&self) -> ComposeScaleCommand
fn clone(&self) -> ComposeScaleCommand
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 ComposeScaleCommand
impl ComposeCommandV2 for ComposeScaleCommand
Source§type Output = ScaleResult
type Output = ScaleResult
The output type this command produces
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 ComposeScaleCommand
impl Debug for ComposeScaleCommand
Source§impl Default for ComposeScaleCommand
impl Default for ComposeScaleCommand
Source§fn default() -> ComposeScaleCommand
fn default() -> ComposeScaleCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeScaleCommand
impl RefUnwindSafe for ComposeScaleCommand
impl Send for ComposeScaleCommand
impl Sync for ComposeScaleCommand
impl Unpin for ComposeScaleCommand
impl UnwindSafe for ComposeScaleCommand
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