pub struct Response {
pub stdout: String,
pub stderr: String,
pub code: u8,
}Expand description
What the plumbing prints for one invocation, and the exit status, before any of it is written.
A tool that streams raw bytes writes them itself while it runs; this is everything else — the report, the structured error, clap’s help — which is what makes the contract testable without spawning a process.
Fields§
§stdout: StringPrinted on stdout, as is.
stderr: StringPrinted on stderr, as is.
code: u8The exit status.
Implementations§
Trait Implementations§
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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