pub enum InputFormat {
Text,
StreamJson,
}Expand description
Input format for Claude Code stdin
Controls the --input-format CLI flag.
§Critical
StreamJson serializes to "stream-json" with a hyphen, not an underscore.
§Examples
use claude_runner_core::InputFormat;
assert_eq!( InputFormat::Text.as_str(), "text" );
assert_eq!( InputFormat::StreamJson.as_str(), "stream-json" ); // hyphen!Variants§
Implementations§
Trait Implementations§
Source§impl Clone for InputFormat
impl Clone for InputFormat
Source§fn clone(&self) -> InputFormat
fn clone(&self) -> InputFormat
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 moreimpl Copy for InputFormat
Source§impl Debug for InputFormat
impl Debug for InputFormat
Source§impl Default for InputFormat
impl Default for InputFormat
impl Eq for InputFormat
Source§impl PartialEq for InputFormat
impl PartialEq for InputFormat
Source§fn eq(&self, other: &InputFormat) -> bool
fn eq(&self, other: &InputFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputFormat
Auto Trait Implementations§
impl Freeze for InputFormat
impl RefUnwindSafe for InputFormat
impl Send for InputFormat
impl Sync for InputFormat
impl Unpin for InputFormat
impl UnsafeUnpin for InputFormat
impl UnwindSafe for InputFormat
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