pub struct CommandExecutionItem {
pub id: String,
pub command: String,
pub aggregated_output: Option<String>,
pub exit_code: Option<i32>,
pub status: CommandExecutionStatus,
}Expand description
A command execution item — a shell command the agent ran.
The exec JSONL protocol uses snake_case (aggregated_output, exit_code)
while the app-server protocol uses camelCase (aggregatedOutput, exitCode)
and may emit null for missing output. Fields below carry serde aliases so
both formats deserialize cleanly.
Fields§
§id: String§command: StringThe shell command that was executed.
aggregated_output: Option<String>Combined stdout/stderr output from the command. None while still in
progress on the app-server protocol; the exec protocol uses an empty
string for the same state.
exit_code: Option<i32>Exit code, if the command has finished.
status: CommandExecutionStatusTrait Implementations§
Source§impl Clone for CommandExecutionItem
impl Clone for CommandExecutionItem
Source§fn clone(&self) -> CommandExecutionItem
fn clone(&self) -> CommandExecutionItem
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 CommandExecutionItem
impl Debug for CommandExecutionItem
Source§impl<'de> Deserialize<'de> for CommandExecutionItem
impl<'de> Deserialize<'de> for CommandExecutionItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandExecutionItem
impl RefUnwindSafe for CommandExecutionItem
impl Send for CommandExecutionItem
impl Sync for CommandExecutionItem
impl Unpin for CommandExecutionItem
impl UnsafeUnpin for CommandExecutionItem
impl UnwindSafe for CommandExecutionItem
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