pub struct Summary {
pub goals: Vec<String>,
pub decisions: Vec<String>,
pub open: Vec<String>,
pub facts: Vec<String>,
pub narrative: Option<String>,
pub covers_messages: u64,
pub updated: u64,
}Expand description
The structured summary block a compaction produces: what the dropped messages amounted to, kept in fields so a later compaction can merge two summaries instead of summarising a summary.
Fields§
§goals: Vec<String>§decisions: Vec<String>§open: Vec<String>§facts: Vec<String>§narrative: Option<String>Free-form narrative when the summarizer could not fill the fields.
covers_messages: u64How many messages the summary stands for (cumulative).
updated: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Summary
impl<'de> Deserialize<'de> for Summary
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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