pub struct Session {
pub id: SessionId,
pub parent: Option<SessionId>,
pub title: String,
pub summary_message_id: Option<MessageId>,
pub cost: f64,
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub created_at: i64,
pub updated_at: i64,
}Fields§
§id: SessionId§parent: Option<SessionId>§title: String§summary_message_id: Option<MessageId>§cost: f64§prompt_tokens: u64§completion_tokens: u64§created_at: i64§updated_at: i64Trait Implementations§
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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