pub struct RunResult {
pub text: String,
pub session_id: Option<String>,
pub usage: Option<TokenUsage>,
pub duration: Duration,
pub stderr_tail: String,
}Expand description
Result of one CLI run.
Fields§
§text: String§session_id: Option<String>§usage: Option<TokenUsage>None when the CLI stream did not contain complete usage data.
duration: Duration§stderr_tail: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
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