pub struct SyncEntry {
pub capability: String,
pub schema: u32,
pub epoch: String,
pub version: u64,
pub resume: Option<String>,
}Expand description
One entry of a device check: [pullCapability, schema, epoch, version], plus
the resume key of a paged full copy as a fifth element.
Fields§
§capability: StringThe pull capability (friends.people.pull).
schema: u32The schema number the device reads.
epoch: StringThe epoch it holds ("" for none); during a paged copy, page one’s.
version: u64The version it holds; during a paged copy, page one’s.
resume: Option<String>The last key of the previous page, while a paged full copy is in progress.
Implementations§
Source§impl SyncEntry
impl SyncEntry
Sourcepub fn pull_request(&self, limit: u32) -> PullRequest
pub fn pull_request(&self, limit: u32) -> PullRequest
The pull request the node sends the app for this entry.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncEntry
impl<'de> Deserialize<'de> for SyncEntry
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SyncEntry
impl StructuralPartialEq for SyncEntry
Auto Trait Implementations§
impl Forget for SyncEntry
impl Freeze for SyncEntry
impl Move for SyncEntry
impl RefUnwindSafe for SyncEntry
impl Send for SyncEntry
impl Sync for SyncEntry
impl Unpin for SyncEntry
impl UnsafeUnpin for SyncEntry
impl UnwindSafe for SyncEntry
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