pub struct ComposeConfig {
pub files: Vec<PathBuf>,
pub project_name: Option<String>,
pub project_directory: Option<PathBuf>,
pub profiles: Vec<String>,
pub env_file: Option<PathBuf>,
pub compatibility: bool,
pub dry_run: bool,
pub progress: Option<ProgressType>,
pub ansi: Option<AnsiMode>,
pub parallel: Option<i32>,
}
Expand description
Base configuration for all compose commands
Fields§
§files: Vec<PathBuf>
Compose file paths (-f, –file)
project_name: Option<String>
Project name (-p, –project-name)
project_directory: Option<PathBuf>
Project directory (–project-directory)
profiles: Vec<String>
Profiles to enable (–profile)
env_file: Option<PathBuf>
Environment file (–env-file)
compatibility: bool
Run in compatibility mode
dry_run: bool
Execute in dry run mode
progress: Option<ProgressType>
Progress output type
ansi: Option<AnsiMode>
ANSI control characters
parallel: Option<i32>
Max parallelism (-1 for unlimited)
Implementations§
Source§impl ComposeConfig
impl ComposeConfig
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 project_directory(self, dir: impl Into<PathBuf>) -> Self
pub fn project_directory(self, dir: impl Into<PathBuf>) -> Self
Set project directory
Sourcepub fn compatibility(self, enabled: bool) -> Self
pub fn compatibility(self, enabled: bool) -> Self
Enable compatibility mode
Sourcepub fn build_global_args(&self) -> Vec<String>
pub fn build_global_args(&self) -> Vec<String>
Build global arguments for compose commands
Trait Implementations§
Source§impl Clone for ComposeConfig
impl Clone for ComposeConfig
Source§fn clone(&self) -> ComposeConfig
fn clone(&self) -> ComposeConfig
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 Debug for ComposeConfig
impl Debug for ComposeConfig
Source§impl Default for ComposeConfig
impl Default for ComposeConfig
Source§fn default() -> ComposeConfig
fn default() -> ComposeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeConfig
impl RefUnwindSafe for ComposeConfig
impl Send for ComposeConfig
impl Sync for ComposeConfig
impl Unpin for ComposeConfig
impl UnwindSafe for ComposeConfig
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