pub struct SessionRecord {
pub id: String,
pub created_at: String,
pub ended_at: Option<String>,
pub repo_root: String,
pub agent_command: String,
pub raw_tokens_total: i64,
pub emitted_tokens_total: i64,
pub saved_tokens_total: i64,
}Expand description
One agent session. Mirrors the sessions table (spec §15.2).
Fields§
§id: String§created_at: String§ended_at: Option<String>§repo_root: String§agent_command: String§raw_tokens_total: i64§emitted_tokens_total: i64§saved_tokens_total: i64Trait Implementations§
Source§impl Clone for SessionRecord
impl Clone for SessionRecord
Auto Trait Implementations§
impl Freeze for SessionRecord
impl RefUnwindSafe for SessionRecord
impl Send for SessionRecord
impl Sync for SessionRecord
impl Unpin for SessionRecord
impl UnsafeUnpin for SessionRecord
impl UnwindSafe for SessionRecord
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