pub struct StatsOptions {
pub no_stream: bool,
pub all: bool,
pub json: bool,
pub no_trunc: bool,
}Expand description
The lifecycle Engine and its per-command option/override types, plus the
project-name/listing helpers — the surface a CLI drives compose operations
through.
Options for Engine::stats_with_options, mirroring docker compose stats
and the table-shaping flags the other list commands expose. Kept off the
frozen Engine::stats signature so the 1.0 library API stays stable.
Fields§
§no_stream: boolDisable streaming; print a single snapshot and exit, --no-stream.
all: boolInclude non-running containers as zeroed rows, -a/--all.
json: boolEmit JSON instead of the table, --format json.
no_trunc: boolDisable container-name truncation in the table, --no-trunc.
Implementations§
Source§impl StatsOptions
impl StatsOptions
Trait Implementations§
Source§impl Default for StatsOptions
impl Default for StatsOptions
Source§fn default() -> StatsOptions
fn default() -> StatsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatsOptions
impl RefUnwindSafe for StatsOptions
impl Send for StatsOptions
impl Sync for StatsOptions
impl Unpin for StatsOptions
impl UnsafeUnpin for StatsOptions
impl UnwindSafe for StatsOptions
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