pub enum EntryBody {
Show 16 variants
UserMessage {
text: String,
reports: Vec<String>,
queued: bool,
attachments: Vec<Meta>,
pastes: Vec<Paste>,
},
Turn {
n: u32,
text: String,
input_tokens: u64,
output_tokens: u64,
cost_usd: Option<f64>,
cached_tokens: Option<u64>,
thinking_tokens: Option<u64>,
first_event_ms: Option<u64>,
first_output_ms: Option<u64>,
total_ms: Option<u64>,
retries: Option<u32>,
retry_wait_ms: Option<u64>,
},
ToolStarted {
name: String,
input: String,
},
ToolFinished {
name: String,
summary: String,
is_error: bool,
},
Retry {
attempt: u32,
max: u32,
wait_ms: u64,
reason: String,
},
Error {
message: String,
},
Idle {
turns: u32,
cost_usd: Option<f64>,
seconds: Option<f64>,
first_output_seconds: Option<f64>,
},
ModelChanged {
model: String,
},
EffortChanged {
effort: Option<String>,
},
Decision {
run: String,
action: String,
note: Option<String>,
},
ApprovalRequested {
id: String,
command: String,
reason: String,
},
PublishApprovalRequested {
id: String,
command: String,
reason: String,
publish: PublishDetails,
},
LandApprovalRequested {
id: String,
command: String,
reason: String,
land: LandDetails,
},
ApprovalAnswered {
id: String,
command: String,
answer: String,
},
PeerMessage {
from_name: String,
from_repository: String,
text: String,
queued: bool,
held: bool,
},
ShellCommand {
command: String,
exit_code: i32,
output: String,
duration_ms: u64,
truncated: bool,
timed_out: bool,
},
}Variants§
UserMessage
Turn
Fields
ToolStarted
ToolFinished
Retry
Error
Idle
ModelChanged
EffortChanged
Decision
ApprovalRequested
PublishApprovalRequested
LandApprovalRequested
ApprovalAnswered
PeerMessage
ShellCommand
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntryBody
impl<'de> Deserialize<'de> for EntryBody
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
impl StructuralPartialEq for EntryBody
Auto Trait Implementations§
impl Forget for EntryBody
impl Freeze for EntryBodywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Meta>: Freeze,
PhantomData<Paste>: Freeze,
impl Move for EntryBody
impl RefUnwindSafe for EntryBody
impl Send for EntryBodywhere
RawVecInner: Send,
impl Sync for EntryBodywhere
RawVecInner: Sync,
impl Unpin for EntryBody
impl UnsafeUnpin for EntryBodywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Meta>: UnsafeUnpin,
PhantomData<Paste>: UnsafeUnpin,
impl UnwindSafe for EntryBodywhere
RawVecInner: UnwindSafe,
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