pub struct ComposeConfigCommand {Show 13 fields
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
Validates and displays the Compose configuration.
Fields§
§config: ComposeConfig
Base configuration
format: Option<ConfigFormat>
Format output
resolve_image_digests: bool
Resolve image digests
no_interpolate: bool
Don’t interpolate environment
no_normalize: bool
Don’t normalize paths
no_consistency: bool
Don’t check consistency
services: bool
Show services
volumes: bool
Show volumes
profiles: bool
Show profiles
images: bool
Show images
hash: Option<String>
Hash of services to include
output: Option<String>
Output file
quiet: bool
Quiet mode
Implementations§
Source§impl ComposeConfigCommand
impl ComposeConfigCommand
Sourcepub fn project_name(self, name: impl Into<String>) -> Self
pub fn project_name(self, name: impl Into<String>) -> Self
Set project name
Sourcepub fn format(self, format: ConfigFormat) -> Self
pub fn format(self, format: ConfigFormat) -> Self
Set output format
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
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 ComposeCommandV2 for ComposeConfigCommand
impl ComposeCommandV2 for ComposeConfigCommand
Source§type Output = ConfigResult
type Output = ConfigResult
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 ComposeConfigCommand
impl Debug for ComposeConfigCommand
Source§impl Default for ComposeConfigCommand
impl Default for ComposeConfigCommand
Source§fn default() -> ComposeConfigCommand
fn default() -> ComposeConfigCommand
Returns the “default value” for a type. Read more
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