pub enum ImportOutcome {
Stored,
Present {
note_differs: bool,
},
Forgotten,
KeptForgotten,
}Expand description
What ArchiveStore::import did with one record.
Variants§
Stored
Written, as a new file under the record’s own id.
Present
The store already holds this content under this id, in the same
state (live, or a tombstone). Nothing was written; the stored note,
created_ms and file time stay. note_differs: both are live and
the stored note is not the record’s.
Forgotten
The record is a tombstone and the store held the archive live: it was forgotten, by the store’s own forget.
KeptForgotten
The record is live and the store holds its tombstone. Nothing was written: an import does not undo a forget.
Trait Implementations§
Source§impl Clone for ImportOutcome
impl Clone for ImportOutcome
Source§impl Debug for ImportOutcome
impl Debug for ImportOutcome
impl Eq for ImportOutcome
Source§impl PartialEq for ImportOutcome
impl PartialEq for ImportOutcome
impl StructuralPartialEq for ImportOutcome
Auto Trait Implementations§
impl Forget for ImportOutcome
impl Freeze for ImportOutcome
impl Move for ImportOutcome
impl RefUnwindSafe for ImportOutcome
impl Send for ImportOutcome
impl Sync for ImportOutcome
impl Unpin for ImportOutcome
impl UnsafeUnpin for ImportOutcome
impl UnwindSafe for ImportOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.