pub struct EventCompaction {
pub start_timestamp: DateTime<Utc>,
pub end_timestamp: DateTime<Utc>,
pub compacted_content: Content,
}Expand description
Metadata for a compacted (summarized) event. When context compaction is enabled, older events are summarized into a single compacted event containing this metadata.
Fields§
§start_timestamp: DateTime<Utc>Timestamp of the earliest event that was compacted.
end_timestamp: DateTime<Utc>Timestamp of the latest event that was compacted.
compacted_content: ContentThe summarized content replacing the original events.
Trait Implementations§
Source§impl Clone for EventCompaction
impl Clone for EventCompaction
Source§fn clone(&self) -> EventCompaction
fn clone(&self) -> EventCompaction
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 EventCompaction
impl Debug for EventCompaction
Source§impl<'de> Deserialize<'de> for EventCompaction
impl<'de> Deserialize<'de> for EventCompaction
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
Auto Trait Implementations§
impl Freeze for EventCompaction
impl RefUnwindSafe for EventCompaction
impl Send for EventCompaction
impl Sync for EventCompaction
impl Unpin for EventCompaction
impl UnsafeUnpin for EventCompaction
impl UnwindSafe for EventCompaction
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