pub struct StoredMessageState {
pub partition: MessagePartition,
pub role: String,
pub body: StoredMessageBody,
pub tool_calls: Vec<LogicalToolCall>,
pub tokens: u32,
}Expand description
One stored message, projected (§12.1, adjudication §5q-2).
This is the source the renderer reads, not the rendered result: no prompt assembly, no residency projection, no salience footer. A restore rebuilds the partitions from these and then renders exactly what an uninterrupted run would have rendered.
Fields§
§partition: MessagePartition§role: Stringsystem | user | assistant | tool.
body: StoredMessageBody§tool_calls: Vec<LogicalToolCall>The calls an assistant message asked for — the half of “tool association” that points forward.
tokens: u32The cached token count the partition counter was built from. Carried rather than recomputed so a restore reproduces the same budget arithmetic even if the tokenizer moved.
Trait Implementations§
Source§impl Clone for StoredMessageState
impl Clone for StoredMessageState
Source§fn clone(&self) -> StoredMessageState
fn clone(&self) -> StoredMessageState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StoredMessageState
impl Debug for StoredMessageState
Source§impl<'de> Deserialize<'de> for StoredMessageState
impl<'de> Deserialize<'de> for StoredMessageState
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
Source§impl PartialEq for StoredMessageState
impl PartialEq for StoredMessageState
Source§impl Serialize for StoredMessageState
impl Serialize for StoredMessageState
impl StructuralPartialEq for StoredMessageState
Auto Trait Implementations§
impl Freeze for StoredMessageState
impl RefUnwindSafe for StoredMessageState
impl Send for StoredMessageState
impl Sync for StoredMessageState
impl Unpin for StoredMessageState
impl UnsafeUnpin for StoredMessageState
impl UnwindSafe for StoredMessageState
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