pub struct InteractionResult {
pub content: String,
pub display_items: Option<Vec<DisplayItem>>,
pub token_usage: Option<TokenUsage>,
pub cost: Option<f64>,
pub duration_ms: u64,
pub unified_diff: Option<String>,
}Fields§
§content: String§display_items: Option<Vec<DisplayItem>>§token_usage: Option<TokenUsage>§cost: Option<f64>§duration_ms: u64§unified_diff: Option<String>Trait Implementations§
Source§impl Clone for InteractionResult
impl Clone for InteractionResult
Source§fn clone(&self) -> InteractionResult
fn clone(&self) -> InteractionResult
Returns a duplicate of the value. Read more
1.0.0 · 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 InteractionResult
impl Debug for InteractionResult
Source§impl<'de> Deserialize<'de> for InteractionResult
impl<'de> Deserialize<'de> for InteractionResult
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 InteractionResult
impl PartialEq for InteractionResult
Source§impl Serialize for InteractionResult
impl Serialize for InteractionResult
impl StructuralPartialEq for InteractionResult
Auto Trait Implementations§
impl Freeze for InteractionResult
impl RefUnwindSafe for InteractionResult
impl Send for InteractionResult
impl Sync for InteractionResult
impl Unpin for InteractionResult
impl UnwindSafe for InteractionResult
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