#[non_exhaustive]pub struct PostingChanges {
pub added: Vec<Posting>,
pub updated: Vec<Posting>,
pub deleted: Vec<DeletedPosting>,
pub next_page: Option<PostingChangesCursor>,
pub next_cursor: Option<PostingChangesCursor>,
pub full_sync_required: bool,
}Expand description
Everything that happened to a box’s postings since a cursor.
next_page is set while this increment has more pages to read now. next_cursor is set
on the last page and is where the next read resumes; it is None when nothing changed,
in which case the cursor that produced this page still stands. full_sync_required is
set when the cursor is too far behind for an increment to carry the difference, and the
box has to be read in full instead.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.added: Vec<Posting>The postings that appeared in the box.
updated: Vec<Posting>The postings that changed.
deleted: Vec<DeletedPosting>The postings that left the box.
next_page: Option<PostingChangesCursor>The next page of this increment, while it has one.
next_cursor: Option<PostingChangesCursor>Where the next read resumes, once the increment is read to its end.
full_sync_required: boolWhether the cursor is too far behind and the box has to be read in full.
Trait Implementations§
Source§impl Clone for PostingChanges
impl Clone for PostingChanges
Source§fn clone(&self) -> PostingChanges
fn clone(&self) -> PostingChanges
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 PostingChanges
impl Debug for PostingChanges
Source§impl Default for PostingChanges
impl Default for PostingChanges
Source§fn default() -> PostingChanges
fn default() -> PostingChanges
Returns the “default value” for a type. Read more
Source§impl PartialEq for PostingChanges
impl PartialEq for PostingChanges
impl StructuralPartialEq for PostingChanges
Auto Trait Implementations§
impl Freeze for PostingChanges
impl RefUnwindSafe for PostingChanges
impl Send for PostingChanges
impl Sync for PostingChanges
impl Unpin for PostingChanges
impl UnsafeUnpin for PostingChanges
impl UnwindSafe for PostingChanges
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