pub struct AssistantLine {
pub text: String,
pub message_id: String,
}Expand description
One reconstructed line of assistant text.
message_id is the message.id field carried by every assistant
stream-json envelope. Unit 10’s sentinel scanner does not need it
today (matches are on text alone), but Unit 11’s telemetry and
future replay tooling benefit from knowing which turn produced each
line, so it is surfaced rather than hidden.
Fields§
§text: String§message_id: StringTrait Implementations§
Source§impl Clone for AssistantLine
impl Clone for AssistantLine
Source§fn clone(&self) -> AssistantLine
fn clone(&self) -> AssistantLine
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 AssistantLine
impl Debug for AssistantLine
Source§impl PartialEq for AssistantLine
impl PartialEq for AssistantLine
impl Eq for AssistantLine
impl StructuralPartialEq for AssistantLine
Auto Trait Implementations§
impl Freeze for AssistantLine
impl RefUnwindSafe for AssistantLine
impl Send for AssistantLine
impl Sync for AssistantLine
impl Unpin for AssistantLine
impl UnsafeUnpin for AssistantLine
impl UnwindSafe for AssistantLine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more