pub struct RunOutcome {
pub output_mode: OutputMode,
pub quiet: bool,
pub command: &'static str,
pub result: Result<()>,
}Expand description
Outcome of a CLI invocation, surfaced to main.rs so it can render
the final envelope without re-parsing argv.
The active OutputMode is resolved from --output, the
SUBX_OUTPUT environment variable, and the built-in default in that
order; command is the kebab-cased subcommand name ("match",
"sync", …); result carries any crate::error::SubXError
produced during dispatch.
Fields§
§output_mode: OutputModeActive output mode for the invocation.
quiet: bool--quiet was set on the command line.
command: &'static strStable subcommand identifier used as envelope.command.
result: Result<()>Result of the dispatched subcommand.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunOutcome
impl !RefUnwindSafe for RunOutcome
impl Send for RunOutcome
impl Sync for RunOutcome
impl Unpin for RunOutcome
impl UnsafeUnpin for RunOutcome
impl !UnwindSafe for RunOutcome
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