pub struct ComposeLogsCommand {
pub executor: CommandExecutor,
pub config: ComposeConfig,
pub services: Vec<String>,
pub follow: bool,
pub timestamps: bool,
pub tail: Option<String>,
pub since: Option<String>,
pub until: Option<String>,
pub no_log_prefix: bool,
pub no_color: bool,
}
Expand description
Docker Compose logs command builder
Fields§
§executor: CommandExecutor
Base command executor
config: ComposeConfig
Base compose configuration
services: Vec<String>
Services to show logs for (empty for all)
follow: bool
Follow log output
timestamps: bool
Show timestamps
tail: Option<String>
Number of lines to show from the end
since: Option<String>
Show logs since timestamp
until: Option<String>
Show logs until timestamp
no_log_prefix: bool
Don’t print prefix
no_color: bool
Don’t use colors
Implementations§
Source§impl ComposeLogsCommand
impl ComposeLogsCommand
Sourcepub fn timestamps(self) -> Self
pub fn timestamps(self) -> Self
Show timestamps
Sourcepub fn no_log_prefix(self) -> Self
pub fn no_log_prefix(self) -> Self
Don’t print prefix
Trait Implementations§
Source§impl Clone for ComposeLogsCommand
impl Clone for ComposeLogsCommand
Source§fn clone(&self) -> ComposeLogsCommand
fn clone(&self) -> ComposeLogsCommand
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 ComposeCommand for ComposeLogsCommand
impl ComposeCommand for ComposeLogsCommand
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 for builder pattern
Source§fn subcommand(&self) -> &'static str
fn subcommand(&self) -> &'static str
Get the compose subcommand name (e.g., “up”, “down”, “ps”)
Source§fn build_subcommand_args(&self) -> Vec<String>
fn build_subcommand_args(&self) -> Vec<String>
Build command-specific arguments (without global compose args)
Source§fn build_command_args(&self) -> Vec<String>
fn build_command_args(&self) -> Vec<String>
Build complete command arguments including “compose” and global args
(This provides the implementation for
(This provides the implementation for
DockerCommandV2::build_command_args
)Source§impl Debug for ComposeLogsCommand
impl Debug for ComposeLogsCommand
Source§impl Default for ComposeLogsCommand
impl Default for ComposeLogsCommand
Source§impl DockerCommand for ComposeLogsCommand
impl DockerCommand for ComposeLogsCommand
Source§type Output = ComposeLogsResult
type Output = ComposeLogsResult
The output type this command produces
Source§fn get_executor(&self) -> &CommandExecutor
fn get_executor(&self) -> &CommandExecutor
Get the command executor for extensibility
Source§fn get_executor_mut(&mut self) -> &mut CommandExecutor
fn get_executor_mut(&mut self) -> &mut CommandExecutor
Get mutable command executor for extensibility
Source§fn build_command_args(&self) -> Vec<String>
fn build_command_args(&self) -> Vec<String>
Build the complete command arguments including subcommands
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the command and return the typed output
Source§fn execute_command<'life0, 'async_trait>(
&'life0 self,
command_args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn execute_command<'life0, 'async_trait>(
&'life0 self,
command_args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Helper method to execute the command with proper error handling
Source§fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self
fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Self
Add a raw argument to the command (escape hatch)
Auto Trait Implementations§
impl Freeze for ComposeLogsCommand
impl RefUnwindSafe for ComposeLogsCommand
impl Send for ComposeLogsCommand
impl Sync for ComposeLogsCommand
impl Unpin for ComposeLogsCommand
impl UnwindSafe for ComposeLogsCommand
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