pub struct RolloutLine {
pub timestamp: String,
pub kind: String,
pub payload: Value,
pub extra: HashMap<String, Value>,
}Expand description
One JSONL line from a rollout file — a tagged payload with a
timestamp. The struct preserves unknown fields and unknown type
tags verbatim so round-trip re-serialization stays faithful.
Fields§
§timestamp: String§kind: StringThe outer discriminator: session_meta, turn_context,
response_item, event_msg, session_state, compacted, or
an unknown future value.
payload: ValueVariant-specific payload. Type-dispatched view via
RolloutLine::item.
extra: HashMap<String, Value>Forward-compat catch-all for unknown top-level fields.
Implementations§
Source§impl RolloutLine
impl RolloutLine
Sourcepub fn item(&self) -> RolloutItem
pub fn item(&self) -> RolloutItem
Interpret kind + payload into a typed view. Unknown variants
become RolloutItem::Unknown, preserving the raw payload.
Sourcepub fn parsed_timestamp(&self) -> Option<DateTime<Utc>>
pub fn parsed_timestamp(&self) -> Option<DateTime<Utc>>
Parse the outer timestamp into a DateTime<Utc> if well-formed.
Trait Implementations§
Source§impl Clone for RolloutLine
impl Clone for RolloutLine
Source§fn clone(&self) -> RolloutLine
fn clone(&self) -> RolloutLine
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 RolloutLine
impl Debug for RolloutLine
Source§impl<'de> Deserialize<'de> for RolloutLine
impl<'de> Deserialize<'de> for RolloutLine
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 RolloutLine
impl RefUnwindSafe for RolloutLine
impl Send for RolloutLine
impl Sync for RolloutLine
impl Unpin for RolloutLine
impl UnsafeUnpin for RolloutLine
impl UnwindSafe for RolloutLine
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