pub struct ComposeConfigCommand {Show 14 fields
pub executor: CommandExecutor,
pub config: ComposeConfig,
pub format: Option<ConfigFormat>,
pub resolve_image_digests: bool,
pub no_interpolate: bool,
pub no_normalize: bool,
pub no_consistency: bool,
pub services: bool,
pub volumes: bool,
pub profiles: bool,
pub images: bool,
pub hash: Option<String>,
pub output: Option<String>,
pub quiet: bool,
}Expand description
Docker Compose config command builder
Fields§
§executor: CommandExecutorBase command executor
config: ComposeConfigBase compose configuration
format: Option<ConfigFormat>Output format
resolve_image_digests: boolResolve image digests
no_interpolate: boolDon’t interpolate environment variables
no_normalize: boolDon’t normalize paths
no_consistency: boolDon’t check consistency
services: boolShow services only
volumes: boolShow volumes only
profiles: boolShow profiles only
images: boolShow images only
hash: Option<String>Hash of services to include
output: Option<String>Output file path
quiet: boolQuiet mode
Implementations§
Source§impl ComposeConfigCommand
impl ComposeConfigCommand
Sourcepub fn format(self, format: ConfigFormat) -> Self
pub fn format(self, format: ConfigFormat) -> Self
Set output format
Sourcepub fn format_json(self) -> Self
pub fn format_json(self) -> Self
Set output format to JSON
Sourcepub fn format_yaml(self) -> Self
pub fn format_yaml(self) -> Self
Set output format to YAML
Sourcepub fn resolve_image_digests(self) -> Self
pub fn resolve_image_digests(self) -> Self
Resolve image digests
Sourcepub fn no_interpolate(self) -> Self
pub fn no_interpolate(self) -> Self
Don’t interpolate environment variables
Sourcepub fn no_normalize(self) -> Self
pub fn no_normalize(self) -> Self
Don’t normalize paths
Sourcepub fn no_consistency(self) -> Self
pub fn no_consistency(self) -> Self
Don’t check consistency
Trait Implementations§
Source§impl Clone for ComposeConfigCommand
impl Clone for ComposeConfigCommand
Source§fn clone(&self) -> ComposeConfigCommand
fn clone(&self) -> ComposeConfigCommand
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 ComposeCommand for ComposeConfigCommand
impl ComposeCommand for ComposeConfigCommand
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 for builder pattern
Source§fn subcommand(&self) -> &'static str
fn subcommand(&self) -> &'static str
Get the compose subcommand name (e.g., “up”, “down”, “ps”)
Source§fn build_subcommand_args(&self) -> Vec<String>
fn build_subcommand_args(&self) -> Vec<String>
Build command-specific arguments (without global compose args)
Source§fn build_command_args(&self) -> Vec<String>
fn build_command_args(&self) -> Vec<String>
Build complete command arguments including “compose” and global args
(This provides the implementation for
(This provides the implementation for
DockerCommandV2::build_command_args)Source§impl Debug for ComposeConfigCommand
impl Debug for ComposeConfigCommand
Source§impl Default for ComposeConfigCommand
impl Default for ComposeConfigCommand
Source§impl DockerCommand for ComposeConfigCommand
impl DockerCommand for ComposeConfigCommand
Source§type Output = ComposeConfigResult
type Output = ComposeConfigResult
The output type this command produces
Source§fn get_executor(&self) -> &CommandExecutor
fn get_executor(&self) -> &CommandExecutor
Get the command executor for extensibility
Source§fn get_executor_mut(&mut self) -> &mut CommandExecutor
fn get_executor_mut(&mut self) -> &mut CommandExecutor
Get mutable command executor for extensibility
Source§fn build_command_args(&self) -> Vec<String>
fn build_command_args(&self) -> Vec<String>
Build the complete command arguments including subcommands
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the command and return the typed output
Source§fn execute_command<'life0, 'async_trait>(
&'life0 self,
command_args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn execute_command<'life0, 'async_trait>(
&'life0 self,
command_args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Helper method to execute the command with proper error handling
Source§fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self
fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self
Add a raw argument to the command (escape hatch)
Source§fn args<I, S>(&mut self, args: I) -> &mut Self
fn args<I, S>(&mut self, args: I) -> &mut Self
Add multiple raw arguments to the command (escape hatch)
Source§fn option(&mut self, key: &str, value: &str) -> &mut Self
fn option(&mut self, key: &str, value: &str) -> &mut Self
Add a key-value option (e.g., –name value, –env key=value)
Source§fn with_timeout(&mut self, timeout: Duration) -> &mut Self
fn with_timeout(&mut self, timeout: Duration) -> &mut Self
Set a timeout for command execution Read more
Source§fn with_timeout_secs(&mut self, seconds: u64) -> &mut Self
fn with_timeout_secs(&mut self, seconds: u64) -> &mut Self
Set a timeout in seconds for command execution
Auto Trait Implementations§
impl Freeze for ComposeConfigCommand
impl RefUnwindSafe for ComposeConfigCommand
impl Send for ComposeConfigCommand
impl Sync for ComposeConfigCommand
impl Unpin for ComposeConfigCommand
impl UnwindSafe for ComposeConfigCommand
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