pub struct ImportResult {
pub rows_imported: BTreeMap<String, usize>,
pub rows_deleted: BTreeMap<String, usize>,
pub rows_skipped: BTreeMap<String, usize>,
pub fts_rebuilt: bool,
pub warnings: Vec<String>,
pub id_remap: Option<HashMap<String, String>>,
pub parent_linked_roots: Vec<String>,
}Expand description
Result of an import operation.
Fields§
§rows_imported: BTreeMap<String, usize>Number of rows imported per table.
rows_deleted: BTreeMap<String, usize>Number of rows deleted per table (for replace mode).
rows_skipped: BTreeMap<String, usize>Number of rows skipped per table (for merge mode).
fts_rebuilt: boolWhether FTS indexes were rebuilt.
warnings: Vec<String>Any warnings encountered during import.
id_remap: Option<HashMap<String, String>>ID remapping table (old_id -> new_id), populated when remap_ids is used.
parent_linked_roots: Vec<String>Root task IDs that were attached to a parent (when parent_id option was used).
Implementations§
Source§impl ImportResult
impl ImportResult
Sourcepub fn total_rows(&self) -> usize
pub fn total_rows(&self) -> usize
Total number of rows imported.
Sourcepub fn total_deleted(&self) -> usize
pub fn total_deleted(&self) -> usize
Total number of rows deleted.
Sourcepub fn total_skipped(&self) -> usize
pub fn total_skipped(&self) -> usize
Total number of rows skipped (merge mode).
Trait Implementations§
Source§impl Clone for ImportResult
impl Clone for ImportResult
Source§fn clone(&self) -> ImportResult
fn clone(&self) -> ImportResult
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 ImportResult
impl Debug for ImportResult
Source§impl From<&ImportResult> for ImportStats
impl From<&ImportResult> for ImportStats
Source§fn from(result: &ImportResult) -> Self
fn from(result: &ImportResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImportResult
impl RefUnwindSafe for ImportResult
impl Send for ImportResult
impl Sync for ImportResult
impl Unpin for ImportResult
impl UnwindSafe for ImportResult
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more