pub struct ComposeImagesCommand {
pub config: ComposeConfig,
pub format: Option<ImagesFormat>,
pub quiet: bool,
pub services: Vec<String>,
}
Expand description
Docker Compose images command
List images used by services.
Fields§
§config: ComposeConfig
Base configuration
format: Option<ImagesFormat>
Format output (table, json)
quiet: bool
Only display image IDs
services: Vec<String>
Services to list images for
Implementations§
Source§impl ComposeImagesCommand
impl ComposeImagesCommand
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: ImagesFormat) -> Self
pub fn format(self, format: ImagesFormat) -> 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 ComposeImagesCommand
impl Clone for ComposeImagesCommand
Source§fn clone(&self) -> ComposeImagesCommand
fn clone(&self) -> ComposeImagesCommand
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 ComposeImagesCommand
impl ComposeCommandV2 for ComposeImagesCommand
Source§type Output = ImagesResult
type Output = ImagesResult
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 ComposeImagesCommand
impl Debug for ComposeImagesCommand
Source§impl Default for ComposeImagesCommand
impl Default for ComposeImagesCommand
Source§fn default() -> ComposeImagesCommand
fn default() -> ComposeImagesCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeImagesCommand
impl RefUnwindSafe for ComposeImagesCommand
impl Send for ComposeImagesCommand
impl Sync for ComposeImagesCommand
impl Unpin for ComposeImagesCommand
impl UnwindSafe for ComposeImagesCommand
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