pub struct DiaryEntry {
pub agent: String,
pub content: String,
pub topic: Option<String>,
pub timestamp: String,
}Expand description
One diary entry: an agent’s chronological reflection.
Fields§
§agent: StringThe agent this diary belongs to (e.g. “claude”, “pi”).
content: StringThe entry body.
topic: Option<String>Optional topic tag.
timestamp: StringISO-8601 timestamp (display; ordering uses an internal numeric field).
Trait Implementations§
Source§impl Clone for DiaryEntry
impl Clone for DiaryEntry
Source§fn clone(&self) -> DiaryEntry
fn clone(&self) -> DiaryEntry
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 DiaryEntry
impl Debug for DiaryEntry
impl Eq for DiaryEntry
Source§impl PartialEq for DiaryEntry
impl PartialEq for DiaryEntry
impl StructuralPartialEq for DiaryEntry
Auto Trait Implementations§
impl Freeze for DiaryEntry
impl RefUnwindSafe for DiaryEntry
impl Send for DiaryEntry
impl Sync for DiaryEntry
impl Unpin for DiaryEntry
impl UnsafeUnpin for DiaryEntry
impl UnwindSafe for DiaryEntry
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