pub enum OnDuplicate {
Skip,
Update,
Allow,
}Expand description
Strategy for handling duplicate notes during import.
Variants§
Skip
Skip duplicate notes (default).
Update
Update existing notes with new field values.
Allow
Allow duplicates to be created.
Trait Implementations§
Source§impl Clone for OnDuplicate
impl Clone for OnDuplicate
Source§fn clone(&self) -> OnDuplicate
fn clone(&self) -> OnDuplicate
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 OnDuplicate
impl Debug for OnDuplicate
Source§impl Default for OnDuplicate
impl Default for OnDuplicate
Source§fn default() -> OnDuplicate
fn default() -> OnDuplicate
Returns the “default value” for a type. Read more
impl Copy for OnDuplicate
Auto Trait Implementations§
impl Freeze for OnDuplicate
impl RefUnwindSafe for OnDuplicate
impl Send for OnDuplicate
impl Sync for OnDuplicate
impl Unpin for OnDuplicate
impl UnwindSafe for OnDuplicate
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