pub struct SyncPage {
pub mode: SyncMode,
pub cursor: String,
pub items: Vec<RemoteItem>,
pub removed: Vec<String>,
pub more: bool,
}Expand description
One page of the answer to SyncLibrary.
Fields§
§mode: SyncMode§cursor: StringThe cursor to name as since next time, once every page is read:
the same on each page.
items: Vec<RemoteItem>At most MAX_PAGE_ITEMS.
removed: Vec<String>Ids of items gone, with SyncMode::Changes; at most
MAX_PAGE_REMOVED.
more: boolAnother page follows on this stream.
Implementations§
Source§impl SyncPage
impl SyncPage
Sourcepub fn within_bounds(self) -> Self
pub fn within_bounds(self) -> Self
This page cut to the bounds: what a server keeps of one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncPage
impl<'de> Deserialize<'de> for SyncPage
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 Eq for SyncPage
impl StructuralPartialEq for SyncPage
Auto Trait Implementations§
impl Forget for SyncPage
impl Freeze for SyncPage
impl Move for SyncPage
impl RefUnwindSafe for SyncPage
impl Send for SyncPage
impl Sync for SyncPage
impl Unpin for SyncPage
impl UnsafeUnpin for SyncPage
impl UnwindSafe for SyncPage
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