pub enum EntryBody {
Show 14 variants
UserMessage {
text: String,
reports: Vec<String>,
queued: bool,
},
Turn {
n: u32,
text: String,
input_tokens: u64,
output_tokens: u64,
cost_usd: Option<f64>,
},
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,
},
ApprovalAnswered {
id: String,
command: String,
answer: String,
},
PeerMessage {
from_name: String,
from_repository: String,
text: String,
queued: bool,
held: bool,
},
}Variants§
UserMessage
Turn
ToolStarted
ToolFinished
Retry
Error
Idle
ModelChanged
EffortChanged
Decision
ApprovalRequested
PublishApprovalRequested
ApprovalAnswered
PeerMessage
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 EntryBody
impl Move for EntryBody
impl RefUnwindSafe for EntryBody
impl Send for EntryBody
impl Sync for EntryBody
impl Unpin for EntryBody
impl UnsafeUnpin for EntryBody
impl UnwindSafe for EntryBody
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