pub struct CommandOutcome {
pub text: String,
pub result: CliResult,
}Expand description
What a command produced: the text it means to print, and the verdict that decides the exit code once that text has reached stdout.
Keeping the two together lets check write its report and still fail: the
text and the crate::cli::cli_error::CliError::CheckFailed both travel up
to the one place that prints and then exits.
Fields§
§text: String§result: CliResultImplementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CommandOutcome
impl !UnwindSafe for CommandOutcome
impl Freeze for CommandOutcome
impl Send for CommandOutcome
impl Sync for CommandOutcome
impl Unpin for CommandOutcome
impl UnsafeUnpin for CommandOutcome
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