pub struct TerminalCommandPart {
pub command_id: String,
pub command_line: String,
pub output: String,
pub timestamp: i64,
pub is_complete: bool,
pub exit_code: Option<i64>,
pub duration_ms: Option<i64>,
}Expand description
A single command: its command line and the output it produced.
While isComplete is false the command is still executing; output grows
as terminal/data actions arrive. At terminal/commandFinished the part
is mutated in-place with isComplete: true and the completion metadata.
Fields§
§command_id: StringStable id matching the commandId on the corresponding
terminal/commandExecuted and terminal/commandFinished actions.
command_line: StringThe command line submitted to the shell.
output: StringAccumulated VT output. Appended to by terminal/data while isComplete
is false. Shell integration escape sequences are stripped by the server.
timestamp: i64Unix timestamp (ms) when execution started, as reported by the server.
is_complete: boolWhether the command has finished.
exit_code: Option<i64>Shell exit code. Set at completion. undefined if unknown.
duration_ms: Option<i64>Wall-clock duration in milliseconds. Set at completion.
Trait Implementations§
Source§impl Clone for TerminalCommandPart
impl Clone for TerminalCommandPart
Source§fn clone(&self) -> TerminalCommandPart
fn clone(&self) -> TerminalCommandPart
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TerminalCommandPart
impl Debug for TerminalCommandPart
Source§impl<'de> Deserialize<'de> for TerminalCommandPart
impl<'de> Deserialize<'de> for TerminalCommandPart
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>,
Source§impl PartialEq for TerminalCommandPart
impl PartialEq for TerminalCommandPart
Source§fn eq(&self, other: &TerminalCommandPart) -> bool
fn eq(&self, other: &TerminalCommandPart) -> bool
self and other values to be equal, and is used by ==.