pub struct ContextPageDiff {
pub evicted: Vec<Uuid>,
pub promoted: Vec<Uuid>,
pub retained: Vec<Uuid>,
}Expand description
Diff between two context windows after re-paging.
Tracks which sections were evicted (removed), promoted (newly added), or retained (survived the repage). Used as an audit trail and broadcast to subscribers via WebSocket.
Fields§
§evicted: Vec<Uuid>Section IDs that were in the old window but not the new one.
promoted: Vec<Uuid>Section IDs that are in the new window but were not in the old one.
retained: Vec<Uuid>Section IDs present in both windows.
Implementations§
Source§impl ContextPageDiff
impl ContextPageDiff
Sourcepub fn has_changes(&self) -> bool
pub fn has_changes(&self) -> bool
True when the repage actually changed the window.
Trait Implementations§
Source§impl Clone for ContextPageDiff
impl Clone for ContextPageDiff
Source§fn clone(&self) -> ContextPageDiff
fn clone(&self) -> ContextPageDiff
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 ComposeSchema for ContextPageDiff
impl ComposeSchema for ContextPageDiff
Source§impl Debug for ContextPageDiff
impl Debug for ContextPageDiff
Source§impl<'de> Deserialize<'de> for ContextPageDiff
impl<'de> Deserialize<'de> for ContextPageDiff
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
Source§impl PartialEq for ContextPageDiff
impl PartialEq for ContextPageDiff
Source§impl Serialize for ContextPageDiff
impl Serialize for ContextPageDiff
Source§impl ToSchema for ContextPageDiff
impl ToSchema for ContextPageDiff
impl StructuralPartialEq for ContextPageDiff
Auto Trait Implementations§
impl Freeze for ContextPageDiff
impl RefUnwindSafe for ContextPageDiff
impl Send for ContextPageDiff
impl Sync for ContextPageDiff
impl Unpin for ContextPageDiff
impl UnwindSafe for ContextPageDiff
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