pub struct LogEntry {
pub at: DateTime<Utc>,
pub kind: EntryKind,
pub text: String,
pub stream_id: Option<String>,
}Fields§
§at: DateTime<Utc>§kind: EntryKind§text: String§stream_id: Option<String>Opaque correlation id for streaming appends. Some(id)
marks the entry as “the engine may send more text for
this id”; ConversationLog::extend_last targets it.
None is a finalized entry — the normal case.
Implementations§
Source§impl LogEntry
impl LogEntry
pub fn new(kind: EntryKind, text: impl Into<String>) -> Self
pub fn at(self, ts: DateTime<Utc>) -> Self
Sourcepub fn streaming(self, id: impl Into<String>) -> Self
pub fn streaming(self, id: impl Into<String>) -> Self
Attach a streaming id so subsequent
ConversationLog::extend_last calls can append to this
row rather than emitting a new one. The engine-side
streaming source lands with M2 (HTTP SSE/WS partial
messages); this accessor is scaffolding so the TUI does
not need another schema change when it arrives.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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