pub struct SyncMetadata {
pub state: SyncState,
pub last_synced: Option<u64>,
pub pending_changes: u32,
pub conflict_count: u32,
pub error_message: Option<String>,
}Expand description
Metadata about synchronization state for an item or collection.
Fields§
§state: SyncStateCurrent sync state.
last_synced: Option<u64>Timestamp of last successful sync (Unix millis).
pending_changes: u32Number of pending changes waiting to sync.
conflict_count: u32Number of conflicts needing resolution.
error_message: Option<String>Optional error message if state is Error.
Implementations§
Source§impl SyncMetadata
impl SyncMetadata
Trait Implementations§
Source§impl Clone for SyncMetadata
impl Clone for SyncMetadata
Source§fn clone(&self) -> SyncMetadata
fn clone(&self) -> SyncMetadata
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 Debug for SyncMetadata
impl Debug for SyncMetadata
Source§impl Default for SyncMetadata
impl Default for SyncMetadata
Source§fn default() -> SyncMetadata
fn default() -> SyncMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SyncMetadata
impl<'de> Deserialize<'de> for SyncMetadata
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 SyncMetadata
impl PartialEq for SyncMetadata
Source§impl Serialize for SyncMetadata
impl Serialize for SyncMetadata
impl Eq for SyncMetadata
impl StructuralPartialEq for SyncMetadata
Auto Trait Implementations§
impl Freeze for SyncMetadata
impl RefUnwindSafe for SyncMetadata
impl Send for SyncMetadata
impl Sync for SyncMetadata
impl Unpin for SyncMetadata
impl UnsafeUnpin for SyncMetadata
impl UnwindSafe for SyncMetadata
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