pub struct ComposeVersionCommand {
pub config: ComposeConfig,
pub format: Option<VersionFormat>,
pub short: bool,
}
Expand description
Docker Compose version command
Show Docker Compose version information.
Fields§
§config: ComposeConfig
Base configuration
format: Option<VersionFormat>
Format output (pretty, json)
short: bool
Short output
Implementations§
Source§impl ComposeVersionCommand
impl ComposeVersionCommand
Sourcepub fn format(self, format: VersionFormat) -> Self
pub fn format(self, format: VersionFormat) -> Self
Set output format
Sourcepub fn format_json(self) -> Self
pub fn format_json(self) -> Self
Set output format to JSON
Trait Implementations§
Source§impl Clone for ComposeVersionCommand
impl Clone for ComposeVersionCommand
Source§fn clone(&self) -> ComposeVersionCommand
fn clone(&self) -> ComposeVersionCommand
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 ComposeVersionCommand
impl ComposeCommandV2 for ComposeVersionCommand
Source§type Output = VersionResult
type Output = VersionResult
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 ComposeVersionCommand
impl Debug for ComposeVersionCommand
Source§impl Default for ComposeVersionCommand
impl Default for ComposeVersionCommand
Source§fn default() -> ComposeVersionCommand
fn default() -> ComposeVersionCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeVersionCommand
impl RefUnwindSafe for ComposeVersionCommand
impl Send for ComposeVersionCommand
impl Sync for ComposeVersionCommand
impl Unpin for ComposeVersionCommand
impl UnwindSafe for ComposeVersionCommand
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