pub struct SyncReport {
pub changed: u64,
pub etag: Option<String>,
pub last_modified: Option<String>,
pub throttle: Option<SyncThrottle>,
}Expand description
What one successful sync produced.
Fields§
§changed: u64How many records changed. Used for the “3 new notifications” kind of message.
etag: Option<String>Validator to send on the next request, if the service issued one.
last_modified: Option<String>§throttle: Option<SyncThrottle>A throttle the service reported alongside the data. None keeps the policy
cadence; Some pushes the next run back to at least delay from now.
Implementations§
Source§impl SyncReport
impl SyncReport
pub fn changed(changed: u64) -> Self
pub fn with_etag(self, etag: impl Into<String>) -> Self
pub fn with_last_modified(self, last_modified: impl Into<String>) -> Self
pub fn with_throttle(self, throttle: SyncThrottle) -> Self
Trait Implementations§
Source§impl Clone for SyncReport
impl Clone for SyncReport
Source§fn clone(&self) -> SyncReport
fn clone(&self) -> SyncReport
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 SyncReport
impl Debug for SyncReport
Source§impl Default for SyncReport
impl Default for SyncReport
Source§fn default() -> SyncReport
fn default() -> SyncReport
Returns the “default value” for a type. Read more
impl Eq for SyncReport
Source§impl PartialEq for SyncReport
impl PartialEq for SyncReport
impl StructuralPartialEq for SyncReport
Auto Trait Implementations§
impl Freeze for SyncReport
impl RefUnwindSafe for SyncReport
impl Send for SyncReport
impl Sync for SyncReport
impl Unpin for SyncReport
impl UnsafeUnpin for SyncReport
impl UnwindSafe for SyncReport
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