pub struct SyncResult {
pub pushed: Vec<SyncedNote>,
pub pulled: Vec<SyncedNote>,
pub resolved_conflicts: Vec<ResolvedConflict>,
pub skipped_conflicts: Vec<SyncConflict>,
pub errors: Vec<SyncError>,
pub updated_definition: Option<DeckDefinition>,
}Expand description
Result of a sync operation.
Fields§
§pushed: Vec<SyncedNote>Notes pushed from TOML to Anki.
pulled: Vec<SyncedNote>Notes pulled from Anki to TOML.
resolved_conflicts: Vec<ResolvedConflict>Conflicts that were resolved.
skipped_conflicts: Vec<SyncConflict>Conflicts that were skipped.
errors: Vec<SyncError>Errors that occurred during sync.
updated_definition: Option<DeckDefinition>Updated TOML definition (if pull_new_notes or conflicts resolved to Anki).
Trait Implementations§
Auto Trait Implementations§
impl Forget for SyncResult
impl Freeze for SyncResult
impl RefUnwindSafe for SyncResult
impl Send for SyncResult
impl Sync for SyncResult
impl Unpin for SyncResult
impl UnsafeUnpin for SyncResult
impl UnwindSafe for SyncResult
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