pub struct RunContext {
pub format: Format,
pub dry_run: bool,
pub quiet: bool,
}Expand description
Runtime context passed to every command.
Fields§
§format: FormatOutput format (text or json).
dry_run: boolWhether the user requested a dry run.
quiet: boolWhether the user requested quiet mode (suppress non-error output).
Auto Trait Implementations§
impl Freeze for RunContext
impl RefUnwindSafe for RunContext
impl Send for RunContext
impl Sync for RunContext
impl Unpin for RunContext
impl UnsafeUnpin for RunContext
impl UnwindSafe for RunContext
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