Expand description
Bulk import operations with duplicate handling.
This module provides high-level import workflows that combine validation, duplicate detection, and batch operations.
§Example
use ankit_engine::{Engine, NoteBuilder};
use ankit_engine::import::OnDuplicate;
let engine = Engine::new();
let notes = vec![
NoteBuilder::new("Japanese", "Basic")
.field("Front", "hello")
.field("Back", "world")
.build(),
];
let report = engine.import().notes(¬es, OnDuplicate::Skip).await?;
println!("Added: {}, Skipped: {}", report.added, report.skipped);Structs§
- Import
Engine - Import workflow engine.
- Import
Failure - Details about a failed import.
- Import
Report - Report of an import operation.
- Smart
AddOptions - Options for smart add operation.
- Smart
AddResult - Result of a smart add operation.
- Validation
Result - Result of validating a single note.
Enums§
- OnDuplicate
- Strategy for handling duplicate notes during import.
- Smart
AddStatus - Status of a smart add operation.