pub struct SyncRecord {
pub timestamp: u64,
pub message: String,
pub is_error: bool,
}Expand description
Record of the last sync result for a provider.
Fields§
§timestamp: u64§message: String§is_error: boolImplementations§
Source§impl SyncRecord
impl SyncRecord
Sourcepub fn load_all() -> HashMap<String, SyncRecord>
pub fn load_all() -> HashMap<String, SyncRecord>
Load sync history from ~/.purple/sync_history.tsv. Format: provider\ttimestamp\tis_error\tmessage
Sourcepub fn save_all(history: &HashMap<String, SyncRecord>)
pub fn save_all(history: &HashMap<String, SyncRecord>)
Save sync history to ~/.purple/sync_history.tsv.
Sourcepub fn load_from_content(content: &str) -> HashMap<String, SyncRecord>
pub fn load_from_content(content: &str) -> HashMap<String, SyncRecord>
Parse sync history from TSV content string (for demo/test use).
Trait Implementations§
Source§impl Clone for SyncRecord
impl Clone for SyncRecord
Source§fn clone(&self) -> SyncRecord
fn clone(&self) -> SyncRecord
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 moreAuto Trait Implementations§
impl Freeze for SyncRecord
impl RefUnwindSafe for SyncRecord
impl Send for SyncRecord
impl Sync for SyncRecord
impl Unpin for SyncRecord
impl UnsafeUnpin for SyncRecord
impl UnwindSafe for SyncRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more