pub enum CliOutputFormat {
Json,
Ndjson,
Lines,
}Expand description
How to parse subprocess stdout into the ATD ToolResult.data payload.
Variants§
Json
stdout is a single JSON document. Default.
Ndjson
stdout is newline-delimited JSON. Each line becomes one page on the wire (when paginated) or is concatenated into a JSON array (when called as a single-shot tool).
Lines
stdout is plain text lines. The dispatcher wraps the output as
{"lines": [...], "stderr": "..."} for the ToolResult.data
payload.
Trait Implementations§
Source§impl Clone for CliOutputFormat
impl Clone for CliOutputFormat
Source§fn clone(&self) -> CliOutputFormat
fn clone(&self) -> CliOutputFormat
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 CliOutputFormat
impl Debug for CliOutputFormat
Source§impl Default for CliOutputFormat
impl Default for CliOutputFormat
Source§fn default() -> CliOutputFormat
fn default() -> CliOutputFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CliOutputFormat
impl<'de> Deserialize<'de> for CliOutputFormat
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 CliOutputFormat
impl PartialEq for CliOutputFormat
Source§fn eq(&self, other: &CliOutputFormat) -> bool
fn eq(&self, other: &CliOutputFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CliOutputFormat
impl Serialize for CliOutputFormat
impl Copy for CliOutputFormat
impl Eq for CliOutputFormat
impl StructuralPartialEq for CliOutputFormat
Auto Trait Implementations§
impl Freeze for CliOutputFormat
impl RefUnwindSafe for CliOutputFormat
impl Send for CliOutputFormat
impl Sync for CliOutputFormat
impl Unpin for CliOutputFormat
impl UnsafeUnpin for CliOutputFormat
impl UnwindSafe for CliOutputFormat
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