pub struct SyncStrategy {
pub conflict_resolution: ConflictResolution,
pub pull_new_notes: bool,
pub push_new_notes: bool,
pub update_tags: bool,
}Expand description
Strategy for how to handle sync operations.
Fields§
§conflict_resolution: ConflictResolutionHow to handle conflicts (note modified in both places).
pull_new_notes: boolPull notes that exist in Anki but not TOML.
push_new_notes: boolPush notes that exist in TOML but not Anki.
Sync tag changes.
Implementations§
Trait Implementations§
Source§impl Clone for SyncStrategy
impl Clone for SyncStrategy
Source§impl Debug for SyncStrategy
impl Debug for SyncStrategy
Auto Trait Implementations§
impl Forget for SyncStrategy
impl Freeze for SyncStrategy
impl RefUnwindSafe for SyncStrategy
impl Send for SyncStrategy
impl Sync for SyncStrategy
impl Unpin for SyncStrategy
impl UnsafeUnpin for SyncStrategy
impl UnwindSafe for SyncStrategy
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