pub struct TerminalCommandResult {
pub exit_code: Option<i64>,
pub preview: Option<String>,
pub truncated: Option<bool>,
}Expand description
Outcome of a command run in a terminal-style tool, filled in on {@link ToolResultTerminalContent.result} once the command exits.
Fields§
§exit_code: Option<i64>Exit code from the completed command, if reported by the runtime
preview: Option<String>Preview of the command’s output, for clients that are not subscribed
to the terminal or that arrive after it is disposed. When isPty is
true the preview may contain VT sequences; when false it is plain
text.
truncated: Option<bool>Whether preview is known to be incomplete or truncated
Trait Implementations§
Source§impl Clone for TerminalCommandResult
impl Clone for TerminalCommandResult
Source§fn clone(&self) -> TerminalCommandResult
fn clone(&self) -> TerminalCommandResult
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 TerminalCommandResult
impl Debug for TerminalCommandResult
Source§impl Default for TerminalCommandResult
impl Default for TerminalCommandResult
Source§fn default() -> TerminalCommandResult
fn default() -> TerminalCommandResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TerminalCommandResult
impl<'de> Deserialize<'de> for TerminalCommandResult
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
Source§impl PartialEq for TerminalCommandResult
impl PartialEq for TerminalCommandResult
Source§impl Serialize for TerminalCommandResult
impl Serialize for TerminalCommandResult
impl StructuralPartialEq for TerminalCommandResult
Auto Trait Implementations§
impl Freeze for TerminalCommandResult
impl RefUnwindSafe for TerminalCommandResult
impl Send for TerminalCommandResult
impl Sync for TerminalCommandResult
impl Unpin for TerminalCommandResult
impl UnsafeUnpin for TerminalCommandResult
impl UnwindSafe for TerminalCommandResult
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