pub struct ComposeConvertCommand {Show 13 fields
pub config: ComposeConfig,
pub format: Option<ConvertFormat>,
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 convert command
Convert compose files to different formats or validate them.
Fields§
§config: ComposeConfig
Base configuration
format: Option<ConvertFormat>
Output format
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 ComposeConvertCommand
impl ComposeConvertCommand
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: ConvertFormat) -> Self
pub fn format(self, format: ConvertFormat) -> 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 ComposeConvertCommand
impl Clone for ComposeConvertCommand
Source§fn clone(&self) -> ComposeConvertCommand
fn clone(&self) -> ComposeConvertCommand
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 ComposeConvertCommand
impl ComposeCommandV2 for ComposeConvertCommand
Source§type Output = ConvertResult
type Output = ConvertResult
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 ComposeConvertCommand
impl Debug for ComposeConvertCommand
Source§impl Default for ComposeConvertCommand
impl Default for ComposeConvertCommand
Source§fn default() -> ComposeConvertCommand
fn default() -> ComposeConvertCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeConvertCommand
impl RefUnwindSafe for ComposeConvertCommand
impl Send for ComposeConvertCommand
impl Sync for ComposeConvertCommand
impl Unpin for ComposeConvertCommand
impl UnwindSafe for ComposeConvertCommand
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