pub enum KeepStrategy {
First,
Last,
MostContent,
MostTags,
}Expand description
Strategy for which duplicate to keep.
Variants§
First
Keep the first note found (by note ID, oldest).
Last
Keep the last note found (by note ID, newest).
MostContent
Keep the note with the most non-empty fields.
MostTags
Keep the note with the most tags.
Trait Implementations§
Source§impl Clone for KeepStrategy
impl Clone for KeepStrategy
Source§fn clone(&self) -> KeepStrategy
fn clone(&self) -> KeepStrategy
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 KeepStrategy
impl Debug for KeepStrategy
Source§impl Default for KeepStrategy
impl Default for KeepStrategy
Source§fn default() -> KeepStrategy
fn default() -> KeepStrategy
Returns the “default value” for a type. Read more
impl Copy for KeepStrategy
Auto Trait Implementations§
impl Freeze for KeepStrategy
impl RefUnwindSafe for KeepStrategy
impl Send for KeepStrategy
impl Sync for KeepStrategy
impl Unpin for KeepStrategy
impl UnwindSafe for KeepStrategy
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