pub struct ExportMessage {
pub role: String,
pub is_user_role: bool,
pub blocks: Vec<ExportBlock>,
pub prompt_snippet: Option<String>,
}Expand description
One projected authoritative message (D3).
prompt_snippet is the host-computed snapshot_label_prompt_snippet of
the first visible text block. The parser and snippet algorithm stay
TUI-owned (D8), so correlation compares authoritative values instead of
re-deriving them portably.
is_user_role carries the host’s exact Role::User comparison. role is
the rendered wire string, and comparing it textually would also match a
Role::Unrecognized("user"), which the baseline never treated as a user
turn. The flag keeps restore-point correlation faithful to the baseline.
Fields§
§role: String§is_user_role: boolExact message.role == Role::User, not a string comparison.
blocks: Vec<ExportBlock>§prompt_snippet: Option<String>Trait Implementations§
Source§impl Clone for ExportMessage
impl Clone for ExportMessage
Source§impl Debug for ExportMessage
impl Debug for ExportMessage
Source§impl PartialEq for ExportMessage
impl PartialEq for ExportMessage
impl StructuralPartialEq for ExportMessage
Auto Trait Implementations§
impl Forget for ExportMessage
impl Freeze for ExportMessage
impl Move for ExportMessage
impl RefUnwindSafe for ExportMessage
impl Send for ExportMessage
impl Sync for ExportMessage
impl Unpin for ExportMessage
impl UnsafeUnpin for ExportMessage
impl UnwindSafe for ExportMessage
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