pub struct TextRun {
pub seq0: u64,
pub ts0: u64,
pub call: u64,
pub texts: Vec<String>,
pub dt: Vec<i64>,
}Expand description
A packed run of consecutive text or thinking deltas belonging to one call.
texts is never joined — token boundaries are evidence, not noise, and
keeping members separate is what makes the packing lossless regardless of
where content-block boundaries fell.
Fields§
§seq0: u64§ts0: u64§call: u64§texts: Vec<String>§dt: Vec<i64>Millisecond gaps between consecutive members; one shorter than texts.
Signed because a wall clock can step backwards mid-stream.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextRun
impl<'de> Deserialize<'de> for TextRun
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 Forget for TextRun
impl Freeze for TextRun
impl Move for TextRun
impl RefUnwindSafe for TextRun
impl Send for TextRunwhere
RawVecInner: Send,
impl Sync for TextRunwhere
RawVecInner: Sync,
impl Unpin for TextRun
impl UnsafeUnpin for TextRunwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<i64>: UnsafeUnpin,
impl UnwindSafe for TextRunwhere
RawVecInner: UnwindSafe,
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