pub struct CommandOutput {
pub stdout: String,
pub stderr: String,
pub exit_code: Option<u32>,
pub stdout_truncated: bool,
pub stderr_truncated: bool,
pub stdout_total_tokens: usize,
pub stderr_total_tokens: usize,
}Expand description
Output from a command execution
Fields§
§stdout: StringStandard output from the command
stderr: StringStandard error from the command
exit_code: Option<u32>Exit code of the command (if available)
stdout_truncated: boolWhether stdout was truncated due to output limits
stderr_truncated: boolWhether stderr was truncated due to output limits
stdout_total_tokens: usizeApproximate total token count for stdout (including truncated content)
stderr_total_tokens: usizeApproximate total token count for stderr (including truncated content)
Implementations§
Trait Implementations§
Source§impl Clone for CommandOutput
impl Clone for CommandOutput
Source§fn clone(&self) -> CommandOutput
fn clone(&self) -> CommandOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandOutput
impl Debug for CommandOutput
Source§impl Default for CommandOutput
impl Default for CommandOutput
Source§fn default() -> CommandOutput
fn default() -> CommandOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnsafeUnpin for CommandOutput
impl UnwindSafe for CommandOutput
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