pub struct LiveSession {Show 14 fields
pub session_id: String,
pub thread_id: String,
pub turn_id: String,
pub codex_app_server_pid: Option<String>,
pub last_codex_event: Option<String>,
pub last_codex_timestamp: Option<DateTime<Utc>>,
pub last_codex_message: Option<String>,
pub codex_input_tokens: u64,
pub codex_output_tokens: u64,
pub codex_total_tokens: u64,
pub last_reported_input_tokens: u64,
pub last_reported_output_tokens: u64,
pub last_reported_total_tokens: u64,
pub turn_count: u32,
}Expand description
State tracked while a coding-agent subprocess is running (Spec Section 4.1.6).
Fields§
§session_id: String<thread_id>-<turn_id>
thread_id: String§turn_id: String§codex_app_server_pid: Option<String>§last_codex_event: Option<String>§last_codex_timestamp: Option<DateTime<Utc>>§last_codex_message: Option<String>§codex_input_tokens: u64§codex_output_tokens: u64§codex_total_tokens: u64§last_reported_input_tokens: u64§last_reported_output_tokens: u64§last_reported_total_tokens: u64§turn_count: u32Trait Implementations§
Source§impl Clone for LiveSession
impl Clone for LiveSession
Source§fn clone(&self) -> LiveSession
fn clone(&self) -> LiveSession
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 LiveSession
impl Debug for LiveSession
Source§impl<'de> Deserialize<'de> for LiveSession
impl<'de> Deserialize<'de> for LiveSession
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
Auto Trait Implementations§
impl Freeze for LiveSession
impl RefUnwindSafe for LiveSession
impl Send for LiveSession
impl Sync for LiveSession
impl Unpin for LiveSession
impl UnsafeUnpin for LiveSession
impl UnwindSafe for LiveSession
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