Expand description
Backup and restore workflows for Anki decks.
This module provides high-level operations for backing up and restoring Anki decks to/from .apkg files.
§Example
use ankit_engine::Engine;
let engine = Engine::new();
// Backup a deck
let result = engine.backup()
.backup_deck("Japanese", "/tmp/backups")
.await?;
println!("Backed up to: {}", result.path.display());
// Restore from backup
let result = engine.backup()
.restore_deck(&result.path)
.await?;
println!("Restored: {}", if result.success { "yes" } else { "no" });Structs§
- Backup
Engine - Engine for backup and restore operations.
- Backup
Info - Information about a backup file.
- Backup
Options - Options for backup operations.
- Backup
Result - Result of a deck backup operation.
- Collection
Backup Result - Result of a collection backup operation.
- Restore
Result - Result of a restore operation.