pub struct HistoryRecord {
pub role: Role,
pub content: String,
pub mode: Mode,
pub timestamp: DateTime<Utc>,
pub passthrough: bool,
pub piped_content: Option<String>,
pub model: Option<String>,
pub token_usage: Option<TokenUsage>,
pub cost: Option<f64>,
pub duration_ms: Option<u64>,
pub derived: Option<DerivedContent>,
pub edit_of: Option<usize>,
}Fields§
§role: Role§content: String§mode: Mode§timestamp: DateTime<Utc>§passthrough: bool§piped_content: Option<String>§model: Option<String>§token_usage: Option<TokenUsage>§cost: Option<f64>§duration_ms: Option<u64>§derived: Option<DerivedContent>§edit_of: Option<usize>Trait Implementations§
Source§impl Clone for HistoryRecord
impl Clone for HistoryRecord
Source§fn clone(&self) -> HistoryRecord
fn clone(&self) -> HistoryRecord
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 HistoryRecord
impl Debug for HistoryRecord
Source§impl<'de> Deserialize<'de> for HistoryRecord
impl<'de> Deserialize<'de> for HistoryRecord
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 HistoryRecord
impl PartialEq for HistoryRecord
Source§impl Serialize for HistoryRecord
impl Serialize for HistoryRecord
impl StructuralPartialEq for HistoryRecord
Auto Trait Implementations§
impl Freeze for HistoryRecord
impl RefUnwindSafe for HistoryRecord
impl Send for HistoryRecord
impl Sync for HistoryRecord
impl Unpin for HistoryRecord
impl UnwindSafe for HistoryRecord
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