pub struct Entry {
pub message: Arc<Message>,
pub author: Option<Author>,
pub id: Option<MessageId>,
pub made: Option<u64>,
pub facts: ResultFacts,
}Expand description
A message as it goes into a conversation: the message, who wrote it,
and, for a message taken out with Conversation::entry, its id,
which a splice keeps. A recorded change
always carries every id.
Fields§
§message: Arc<Message>The message, shared with the conversation it goes into.
Who wrote it; None for the user’s own text, the model’s reply and
tool results.
id: Option<MessageId>Its id in the conversation, if it has one.
made: Option<u64>When it was first made, in milliseconds since the Unix epoch: set by
Conversation::entry, kept by an entry put back as it was. A
recorded change carries it only for such an entry.
facts: ResultFactsWhat the tool calls its results answer published, for a view to draw them from; saved with it, never sent to a model.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn with_facts(self, facts: ResultFacts) -> Self
pub fn with_facts(self, facts: ResultFacts) -> Self
This entry, with what the calls its results answer published.
Sourcepub fn is_stop_marker(&self) -> bool
pub fn is_stop_marker(&self) -> bool
Whether it is the STOPPED note, as
EntryRef::is_stop_marker.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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>,
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Forget for Entry
impl Freeze for Entry
impl Move for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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