pub struct Outcome {
pub report: Option<Json>,
pub text: Option<String>,
pub code: u8,
}Expand description
A successful run’s result.
Fields§
§report: Option<Json>Printed on stdout: pretty JSON, or its text form.
text: Option<String>The text form, when the tool has a better one than
Json::to_text.
code: u8The exit status, for a tool whose success has more than one answer (fsck’s “corrected”). Zero otherwise.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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