#[non_exhaustive]pub struct CommandExecution {
pub command: Option<String>,
pub status: Option<String>,
pub exit_code: Option<i32>,
pub aggregated_output: Option<String>,
}Expand description
A shell command the model ran, from a command_execution item.
Every field is optional: an item.started carries the command with no
outcome yet, and the CLI has added fields to this item before.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.command: Option<String>The command line, as the CLI recorded it.
status: Option<String>Reported status, completed being the observed value.
exit_code: Option<i32>Exit code, once the command has finished.
aggregated_output: Option<String>Combined stdout and stderr, when the CLI included it.
Trait Implementations§
Source§impl Clone for CommandExecution
impl Clone for CommandExecution
Source§fn clone(&self) -> CommandExecution
fn clone(&self) -> CommandExecution
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 CommandExecution
impl Debug for CommandExecution
Source§impl Default for CommandExecution
impl Default for CommandExecution
Source§fn default() -> CommandExecution
fn default() -> CommandExecution
Returns the “default value” for a type. Read more
impl Eq for CommandExecution
Source§impl PartialEq for CommandExecution
impl PartialEq for CommandExecution
impl StructuralPartialEq for CommandExecution
Auto Trait Implementations§
impl Freeze for CommandExecution
impl RefUnwindSafe for CommandExecution
impl Send for CommandExecution
impl Sync for CommandExecution
impl Unpin for CommandExecution
impl UnsafeUnpin for CommandExecution
impl UnwindSafe for CommandExecution
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