pub struct ParsedCodexEvent {
pub event_type: CodexEventType,
pub session_id: String,
pub timestamp: Option<DateTime<Utc>>,
pub model: Option<String>,
pub metadata: Value,
}Expand description
Parsed Codex activity event (non-token events)
Fields§
§event_type: CodexEventType§session_id: String§timestamp: Option<DateTime<Utc>>§model: Option<String>§metadata: ValueEvent-specific metadata as JSON
Implementations§
Source§impl ParsedCodexEvent
impl ParsedCodexEvent
Sourcepub fn from_log_record(record: &LogRecord) -> Option<Self>
pub fn from_log_record(record: &LogRecord) -> Option<Self>
Parse a LogRecord into a Codex activity event
Sourcepub fn into_event(self, machine_id: String) -> Event
pub fn into_event(self, machine_id: String) -> Event
Convert to an Event with ApiRequest event type (0 tokens for activity events)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedCodexEvent
impl RefUnwindSafe for ParsedCodexEvent
impl Send for ParsedCodexEvent
impl Sync for ParsedCodexEvent
impl Unpin for ParsedCodexEvent
impl UnwindSafe for ParsedCodexEvent
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